HTMLDetailsElement

The interface for <details>. Extends HTMLElement → Element.

Reflected properties

All setters are guarded and throw NoModificationAllowedError on a read-only document.

Property Attribute Type Notes
open open boolean (presence) Reading reflects whether the attribute is present; assigning a falsy JavaScript value removes it; assigning a truthy value makes it present.

See also