HTML DOM Ol Object
Ol Object
Obiekt Ol reprezentuje element HTML <ol>.
Uzyskaj dostęp do Ol Object
Możesz uzyskać dostęp do elementu <ol> za pomocą getElementById():
Przykład
var x = document.getElementById("myOl");
Utwórz Ol Object
Możesz utworzyć element <ol> za pomocą metody document.createElement():
Przykład
var x = document.createElement("OL");
Ol Właściwości obiektu
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 |
Standardowe właściwości i zdarzenia
Obiekt Ol obsługuje również standardowe właściwości i zdarzenia .
Powiązane strony
Odniesienie HTML: tag HTML <ol>