JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Option.index Property

Name

Option.index Property---the position of the option

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

option.index

Description

The index property specifies the position or index of the Option object option within the options[] array of the Select object that contains it. The first Option object in the array is at index 0, and has its index property set to 0. The second Option has an index of 1, and so on.

See Also

"Option", "Select"


Previous Home Next
Option.defaultSelected Book Index Option.selected

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz