HTML DOM Besonderhede Voorwerp
Besonderhede Voorwerp
Die Details-objek verteenwoordig 'n HTML <details>-element.
Let wel: Die <details>-element word nie in Internet Explorer ondersteun nie.
Toegang tot 'n besonderhede-objek
Jy kan toegang tot 'n <details>-element kry deur getElementById():
Voorbeeld
var x = document.getElementById("myDetails");
Skep 'n besonderhede-objek
Jy kan 'n <details> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("DETAILS");
Besonderhede Object Properties
Property | Description |
---|---|
open | Sets or returns whether the details should be visible (open) to the user, or not |
Standaard eiendomme en geleenthede
Die Details-objek ondersteun ook die standaard eienskappe en gebeurtenisse .
Verwante bladsye
HTML verwysing: HTML <details> tag
HTML-verwysing: HTML <summary> tag
JavaScript-verwysing: HTML DOM Details Object