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 | Description |
---|---|
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
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!