HTML DOM Legend object
The Legend object
The Legend object represents an HTML-lt;legend-and-gt; element.
Access the Legend object
You can use getElementById() to access the elements:
Create a Legend object
You can use the document.createElement() method to create an element:
Legend object properties
Attributes | describe |
---|---|
form | Returns a reference to a form that contains LeGend. |
Standard properties and events
Legend objects also support standard properties and events.
Related articles
HTML Reference Manual: HTML .lt;fieldset.gt; Tags
HTML Reference Manual: HTML slt;legend.gt; Tags