HTML DOM Ol Voorwerp
Ol Voorwerp
Die Ol voorwerp verteenwoordig 'n HTML <ol> element.
Toegang tot 'n Ol Object
Jy kan toegang tot 'n <ol>-element kry deur getElementById():
Voorbeeld
var x = document.getElementById("myOl");
Skep 'n Ol Object
Jy kan 'n <ol> element skep deur die document.createElement() metode te gebruik:
Voorbeeld
var x = document.createElement("OL");
Ol Object Properties
Property | Description |
---|---|
compact | Not supported in HTML5. Use style.lineHeight instead. Sets or returns whether the list should render smaller than normal, or not |
reversed | Sets or returns whether the list order should be descending or not |
start | Sets or returns the value of the start attribute of an ordered list |
type | Sets or returns the value of the type attribute of an ordered list |
Standaard eiendomme en geleenthede
Die Ol voorwerp ondersteun ook die standaard eienskappe en gebeure .
Verwante bladsye
HTML-verwysing: HTML <ol>-merker