document.classes.listStyleType
JavaScript 1.2+ Nav4+ Syntax
document.classes.className.tagName.listStyleType
Description
The listStyleType property specifies the format of list items elements that are associated with the class called className. The definition can also specify a tag or the word all for 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.78 uses the listStyleType property to format a list of items.
Listing 7.78 Set the listStyleType Property
<html> <script> <!-- ... |
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.