The HTMLDetailsElement interface provides special properties (beyond the regular HTMLElement interface it also has available to it by inheritance) for manipulating <details> elements.


Inherits properties from its parent, HTMLElement.
Is a boolean reflecting the open HTML attribute, indicating whether or not the element’s contents (not counting the <summary>) is to be shown to the user.


No specific method; inherits methods from its parent, HTMLElement.


Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support ? ? ? ? ? ?
open ? ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support ? ? ? ? ? ? ?
open ? ? ? ? ? ? ?

See also

  • The HTML element implementing this interface: <details>.

Document Tags and Contributors

Contributors to this page: fscholz, rileym7, chharvey
Last updated by: fscholz,