--- title: HTMLDetailsElement slug: Web/API/HTMLDetailsElement translation_of: Web/API/HTMLDetailsElement ---

translation in progress

{{APIRef("HTML DOM")}}

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

{{InheritanceDiagram(600, 120)}}

Properties

Inherits properties from its parent, {{domxref("HTMLElement")}}.

{{domxref("HTMLDetailsElement.open")}}
Is a {{domxref("boolean")}} reflecting the {{htmlattrxref("open", "details")}} HTML attribute, indicating whether or not the element’s contents (not counting the {{HTMLElement("summary")}}) is to be shown to the user.

Methods

No specific method; inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

Browser compatibility

{{Compat("api.HTMLDetailsElement")}}

See also