style.listStyleType (Property)

The type of list presentation marker for an ordered (<OL>) or unordered (<UL>) list.

Availability:

CSS level - 1
DOM level - 2
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.listStyleType
CSS syntax:list-style-stype: aType
Argument list:aTypeA list type

You can define the way that list items are enumerated on the page. The specific details depend on whether the list item is a member of an ordered list (<OL>) or an unordered list (<UL>).

The following keywords are appropriate for use with unordered lists:

The default setting for an unordered list will be a disc.

The following keywords are appropriate for an ordered list:

The default setting for an ordered list is decimal.

The keywords for this property correspond with the values defined in UL.type and OL.type object properties. Although the notation is different the displayed artefacts will be the same.

This display control property is completely overridden if the listStyleImage property is set to a URL for an image. As long as the listStyleImage property is set to "none" or an empty ("") string this property comes into play.

See also:JSSTag.listStyleType, OL.type, style.counterIncrement, style.listStyle, style.listStyleImage, UL.type