The HTMLDetailsElement
interface provides special properties (beyond the regular HTMLElement
interface it also has available to it by inheritance) for manipulating <details>
elements.
On this page
HTMLDetailsElement
Instance properties
Inherits properties from its parent, HTMLElement
.
-
HTMLDetailsElement.open
-
A boolean value reflecting the
open
HTML attribute, indicating whether or not the element's contents (not counting the<summary>
) is to be shown to the user.
Instance methods
No specific method; inherits methods from its parent, HTMLElement
.
Events
Listen to this event using addEventListener()
or by assigning an event listener to the oneventname
property of this interface.
Specifications
Specification |
---|
HTML Standard # htmldetailselement |
Browser compatibility
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
HTMLDetailsElement |
10 | 79 | 49 | No | 15 | 6 | ≤37 | 18 | 49 | 14 | 6 | 1.0 |
open |
10 | 79 | 49 | No | 15 | 6 | ≤37 | 18 | 49 | 14 | 6 | 1.0 |
toggle_event |
36 | 79 | 49 | No | 23 | 10.1 | 37 | 36 | 49 | 24 | 10.3 | 3.0 |
See also
- The HTML element implementing this interface:
<details>
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement