HTML DOM Details object
Details object
The Details object represents an HTML- and details-and-details element.
Access the Details object
You can use getElementById() to access the elements:
Create a Details Object
You can create a <details> element by using the document.createElement() method:
Details object properties
Attributes | describe |
---|---|
open | Set whether or not the description information within the Details tag is displayed. |
Standard properties and events
Details objects also support standard properties and events.
Related articles
HTML Reference Manual: HTML slt;details.gt; Tags