LI.type (Property)

A type indicator that controls the presentation style of an item in the list that the <LI> object belongs to.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myLI.type

There are a variety of different list types that can be displayed. The type value can be defined on an item by item basis within the ordered or unordered list collections.

Lists support an enumeration display of the following types:

<UL>/<OL>Type codePresentation style
OL1Numeric
OLaAlphabetical - lower case
OLAAlphabetical - upper case
OLiRoman numerals - lower case
OLIRoman numerals - upper case
ULcirclea small open circular bullet
ULdisca small solid circular bullet
ULsquarea small square bullet

Some browsers may provide extended functionality, and use of characters other than those specified will yield undefined behavior. This is largely superseded by the CSS styling mechanisms now and is likely to become deprecated in due course.

See also:OL.type, UL.type