A graphical Select list on an HTML form.
Browser/User Agent Support
| IE | Mozilla | Netscape | Opera | Safari | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
|---|
Constructors
| Constructor | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Creates a new instance of a Select object. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Properties
| Property | IE | Mozilla | Netscape | Opera | Safari |
|---|---|---|---|---|---|
Event handler for when a user changes the value of the Select list. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Array of the options available from the Select list. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Number of elements in the options array. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Index in the options array for the selected option. | 3.0+ | 1.0+ | 2.0+ | 7.0+ | 1.0+ |
Type of object represented by the Select list and whether or not multiple selections are allowed. | 4.0+ | 1.0+ | 3.0+ | 7.0+ | 1.0+ |
References
Form | HTMLElement | Input | Option | HTMLSelectElement
Availability
JavaScript 1.0 | enhanced in JavaScript 1.1 | W3C
Constructor Detail
Property Detail
static Function onchange
Event handler for when a user changes the value of the Select list.
- See Also
Input.onchange | Option | Event | EventListener | EventTarget
- Availability
JavaScript 1.0
Array options
Array of the options available from the Select list.
- See Also
- Availability
JavaScript 1.0 | enhanced in JavaScript 1.1 | W3C
Number length
Number of elements in the options array.
- Availability
W3C
Number selectedIndex
Index in the options array for the selected option.
- Availability
W3C
String type
Type of object represented by the Select list and whether or not multiple selections are allowed.
- Availability
W3C
