skip to contentstylized crane logoWhite Crane Education

Select Objects

The select object, created by an HTML select tag, can display as either a combo box or list box.


onblur onclick ondblclick onfocus
onkeydown onkeypress onkeyup onmousedown
onmouseenter onmouseleave onmousemove onmouseout
onmouseover onmouseup


form returns a reference to the form to which the control belongs
length returns/sets the number of items displayed in the list
options returns an array whose elements are the option items on the list
selectedIndex returns/sets the index of the selected option
type returns the value of the list's type attribute


blur() takes the focus away from the button
click() duplicates a mouse click on the button including causing the onclick event to fire
focus() moves the focus to the button