Οι εθελοντές μας δεν έχουν μεταφράσει αυτό το άρθρο στα Ελληνικά, ακόμα. Γίνετε μέλος και βοηθήστε στη μετάφραση!
Μπορείτε επίσης να διαβάσετε το άρθρο στα English (US).

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 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.

toggle
Fired when the open/closed state of a <details> element is toggled.

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'HTMLDetailsElement' in that specification.
Candidate Recommendation  

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
HTMLDetailsElementChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
openChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes
toggle eventChrome Full support YesEdge ? Firefox Full support YesIE ? Opera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support YesOpera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown

See also

  • The HTML element implementing this interface: <details>

Εθελοντές και ετικέτες εγγράφου

Συνεισφέροντες σε αυτή τη σελίδα: chrisdavidmills, mdnwebdocs-bot, mfluehr, fscholz, rileym7, chharvey
Τελευταία ενημέρωση από: chrisdavidmills,