| ol | NN 6 IE 4 DOM 1 | ||
|
The ol object reflects the ol element. |
|||
| HTML Equivalent | |||
<ol> |
|||
| Object Model Reference | |||
[window.]document.getElementById("elementID")
|
|||
| Object-Specific Properties | |||
|
|||
| Object-Specific Methods | |||
None. |
|||
| Object-Specific Event Handler Properties | |||
None. |
|||
| compact | NN 6 IE 4 DOM 1 |
| Read/Write | |
|
When set to true, the compact property should instruct the browser to render items in the list in a more compact format. This property has no effect in mainstream browsers. |
|
| Example | |
document.getElementById("myOL").compact = true;
|
|
| Value | |
Boolean value: true | false. |
|
| Default | |
false |
|
| start | NN 6 IE 4 DOM 1 |
| Read/Write | |
|
Indicates the starting number for the sequence of items in the ol element. This is convenient when a sequence of items must be disturbed by running body text. While the value is a number, the corresponding Arabic numeral, Roman numeral, or alphabet letter renders the value. When no value is set as an attribute, Netscape 6 defaults the property value to -1. |
|
| Example | |
document.getElementById("sublist2").start = 6;
|
|
| Value | |
Integer. |
|
| Default | |
1 (IE); -1 (Netscape 6). |
|
| type | NN 6 IE 4 DOM 1 | |||||||||||
| Read/Write | ||||||||||||
|
Indicates the manner in which the leading numbers or letters of items in the list are displayed. |
||||||||||||
| Example | ||||||||||||
document.getElementById("instruxList").type = "a";
|
||||||||||||
| Value | ||||||||||||
Possible values are: A | a | I | i | 1. Sequencing is performed automatically as shown in the following table. |
||||||||||||
|
||||||||||||
| Default | ||||||||||||
None specified, although behavior is that of 1. |
||||||||||||