THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

HTML DOM Ol Object


Ol Object

The Ol object speaks to a HTML <ol> element.

Access an Ol Object

You can get to a <ol> component by utilizing getElementById():

var x = document.getElementById("myOl"); Try it

Create an Ol Object

You can make a <ol> component by utilizing the document.createElement() method:

var x = document.createElement("OL"); Try it

Ol Object Properties

Property Description
compact Not bolstered in HTML5. Use style.lineHeight instead.
Sets or returns whether the rundown should render littler than ordinary, or not
reversed Sets or returns whether the rundown request ought to dive or not
start Sets or returns the estimation of the begin quality of an arranged list
type Sets or returns the estimation of the sort property of an arranged list

Standard Properties and Events

The Ol object likewise bolsters the standard properties and events.