Name

value — NN n/a IE 4 DOM 1

Synopsis

Read/Write

The number of the item within an ordered list. This property applies to an LI element only when it is nested inside an OL element. The default value for unadjusted numbering is always zero. If you set the value property of one item in the list, the following items continue the sequence from the new value.

Example

document.all.step5.value = 5

Value

Positive integer.

Default

0

Get Dynamic HTML: The Definitive Reference 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.