document.tags.listStyleType

JavaScript 1.2+ Nav4+ Syntax

document.tags.tagName.listStyleType

Description

The listStyleType property specifies the format of list items elements associated with the tag called tagName.

There are nine types of values that are valid for the listStyleType property: disc, circle, square, decimal, lower-roman, upper-roman, lower-alpha, upper-alpha, and none.

Note

The listStyleType property is only valid if the element also has the display property set to list-item.

Example

Listing 7.180 uses the listStyleType property to format a list of items.

Listing 7.180 Set the listStyleType Property
 <html> <script> <!-- Hide //Create a style sheet tag that defines a list format document.tags.OL.display = "list-item"; ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.