<details>
HTML DOM Details object
Details object
The Details object represents an HTML <details> element.
Access the Details object
You can access the <details> element with getElementById():
var x = document.getElementById("myDetails");
Create a Details Object
You can create a <details> element by using the document.createElement() method:
var x = document.createElement("DETAILS");
Details object properties
Attribute | Description |
---|---|
open | Sets or returns whether 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 <details> Tag