style.counterReset (Property)

A way to reset a counter at the start of a section.

Availability:

DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.counterReset
CSS syntax:counter-reset: aValue
Argument list:aValueA new initial value for the counter

If you are building complex ordered list structures, you may want to force a counter to be reset to a specific value. This property provides a means of assigning a new value to the list at the start of the enumeration loop.