HTML DOM Details Object
Details Object
The Details object represents an HTML element.
.
Accessing the Details Object
You can use getElementById() to access an element.
element:
var x = document.getElementById("myDetails");
Try it
Create a Details Object
You can create a
element by using the document.createElement() method:
var x = document.createElement("DETAILS");
Try it
Details Object Properties
| property | Description |
|---|---|
| open | Sets or returns whether the description inside the details tag is displayed. |
Standard properties and events
The Details object also supports standard property andEvents.
Related Articles
HTML Reference Manual: HTML
tag