Javascript Reference
Categories: LI

javascript LI type

@March 15, 2008, 1:22 a.m.
typeFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

Indicates the manner in which the leading bullets, numbers, or letters of items in the list are displayed. Bullet styles are displayed when the li element is nested inside a ul element; numbers and letters are displayed for an ol element. If your script changes the type for a single li object, be aware that the change affects all subsequent li elements in the same list.

 
Example
 
document.getElementById("instruxListItem3").type = "a";
document.getElementById("point4").type = "square";
 
Value

For an ol style list, possible values are: A | a | I | i | 1. Sequencing is performed automatically as shown in the following table.

For a ul-style list, possible values are: circle | disc | square.

 
TypeExample
AA, B, C, ...
aa, b, c, ...
II, II, III, ...
ii, ii, iii, ...
11, 2, 3, ...
 
Default

1 and disc (although values are empty unless the corresponding attribute is explicitly assigned).


Powered by Linode.