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

ACCESSKEY

DATAFLD

ID

MULTIPLE

STYLE

ALIGN

DATASRC

LANG

NAME

TABINDEX

CLASS

DISABLED

LANGUAGE

SIZE

 

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

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.