Easy Tutorial
❮ Jsref Regexp Tostring Prop Style Direction ❯

HTML DOM Details Object


Details Object

The Details object represents an HTML <details> element.

Accessing a Details Object

You can access a <details> element using the getElementById() method:

Creating a Details Object

You can create a <details> element by using the document.createElement() method:

Details Object Properties

Property Description
open Sets or returns whether the details inside the <details> tag are visible.

Standard Attributes and Events

The Details object also supports standard attributes and events.


Related Articles

HTML Reference: HTML <details> Tag

❮ Jsref Regexp Tostring Prop Style Direction ❯