Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML DOM Ol start Property

Ol start Property

Ol Object Reference Ol Object

Example

Set the start value of an ordered list to "75":

document.getElementById("myOl").start="75";

Try it »


Definition and Usage

The start property sets or returns the value of the start attribute of an ordered list.

The start attribute specifies the start value of the first list item in an ordered list.


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the start property.


Syntax

Return the start property:

olObject

.start

Set the start property:

olObject

.start=

number

Attribute values

Value Description
number Specifies the start value of the first list item in an ordered list.

Technical Details

Return Value: A number representing the start value of the first list item in an ordered list.

More examples

Example

Return the value of the first list item in an ordered list:

var x = document.getElementById("myOl").start;

x The output is:

50

Try it »

Example

When using Roman numerals (type="I"), set the start value of the ordered list to "5":

document.getElementById("myOl").start="5";

Try it »


Related Articles

HTML Reference Manual:HTML

    start property


    Ol Object Reference Ol Object