HTML DOM Li Object
Li object
The Li object represents the HTML <li> element.
Access Li object
You can access the <li> element using getElementById():
var x = document.getElementById("myLi");
Create Li object
You can create an <li> element by using the document.createElement() method:
var x = document.createElement("LI");
Li Object Properties
Attributes | Description |
---|---|
value | Sets or returns the value attribute value of the list item. |
Standard Attributes and Events
Li Object Supports StandardsAttributesAndEvents.
Related Pages
HTML Reference Manual:HTML <li> Tag