HTML DOM Ul Object
Ul object
Ul object represents the HTML <ul> element.
Access Ul object
You can use getElementById() to access the <ul> element:
var x = document.getElementById("myUL");
Create Ul object
You can use the document.createElement() method to create a <ul> element:
var x = document.createElement("UL");
Ul object properties
Properties | Description |
---|---|
compact |
Not supported in HTML5.Please use style.lineHeight. Set or return whether the unordered list should be presented smaller than normal. |
type |
Not supported in HTML5.Please use style.listStyleType. Sets or returns the type attribute value of an unordered list. |
Standard Properties and Events
Ul Object Supports StandardsPropertiesAndEvents.