Name
<SELECT> — NN all IE all HTML all
Synopsis
<SELECT>...</SELECT>
End Tag: Required
The SELECT
element displays information from nested OPTION
elements as either a scrolling list or pop-up menu in a document.
Users typically make a selection from the list of items (or multiple
selections from a scrolling list if the SIZE
attribute is set greater than 1 and the MULTIPLE
attribute is set). The VALUE attribute of the
selected OPTION item is submitted as the value
part of a name/value pair to the server with a form. Navigator
requires that a SELECT element be placed inside a
FORM element.
Example
<SELECT NAME="chapters">
<OPTION VALUE="chap1.html">Chapter 1
<OPTION VALUE="chap2.html">Chapter 2
<OPTION VALUE="chap3.html">Chapter 3
<OPTION VALUE="chap4.html">Chapter 4
</SELECT>Object Model Reference
- NN
[window.]document.formName.selectName
[window.]document.forms[i].elements[i]
- IE
[window.]document.formName.selectName
[window.]document.forms[i].elements[i]
[window.]document.all.elementID
Attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Event Handler Attributes
|
Handler |
NN |
IE |
HTML |
|---|---|---|---|
onAfterUpdate |
n/a |
4 |
n/a |
onBeforeUpdate |
n/a |
4 |
n/a |
onBlur |
2 |
3 |
4 |
onChange |
2 |
3 |
4 |
onClick |
n/a |
4 |
4 |
onDblClick |
n/a |
4 |
4 |
onDragStart |
n/a |
4 |
n/a |
onFocus |
2 |
3 |
4 |
onHelp |
n/a |
4 |
n/a |
onKeyDown |
n/a |
4 |
4 |
onKeyPress |
n/a |
4 |
4 |
onKeyUp |
n/a |
4 |
4 |
onMouseDown |
n/a |
4 |
4 |
onMouseMove |
n/a |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access