HTMLDetailsElement
The HTMLDetailsElement
interface provides special properties (beyond the regular HTMLElement
interface it also has available to it by inheritance) for manipulating <details>
elements.
Properties
Inherits properties from its parent, HTMLElement
.
HTMLDetailsElement.open
-
Is 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.
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 (HTML) # 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 |
Yes |
79 |
Yes |
No |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
Yes |
See also
- The HTML element implementing this interface:
<details>
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDetailsElement