Объект HTML DOM Ol
Старый объект
Объект Ol представляет элемент HTML <ol>.
Доступ к старому объекту
Вы можете получить доступ к элементу <ol> с помощью getElementById():
Пример
var x = document.getElementById("myOl");
Создать старый объект
Вы можете создать элемент <ol> с помощью метода document.createElement():
Пример
var x = document.createElement("OL");
Ol Свойства объекта
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 |
Стандартные свойства и события
Объект Ol также поддерживает стандартные свойства и события .
Связанные страницы
Справочник по HTML: HTML-тег <ol>