The Legend object represents an HTML <legend> element.
You can access a <legend> element by using getElementById():
You can create a <legend> element by using the document.createElement() method:
Property | 説明 |
---|---|
form | Returns a reference to the form that contains the legend |
The Legend object also supports the standard properties and events.
HTML reference: HTML <fieldset> tag
HTML reference: HTML <legend> tag