Mega Code Archive

 
Categories / JavaScript DHTML / Form Control
 

Methods and Properties of the Select Object

Method blur()           Removes the focus from the select box. focus()          Gives the focus to the select box. handleEvent()    Invokes the handler for the event specified;  Property form             Returns the entire form the select box is in. length           Returns the number of options in the select box. name             Returns the name of this select box, specified by the name attribute. options          Returns an array containing each of the items in the select box. selectedIndex    Returns an integer specifying the indexed location of the selected option in the select box. type             Returns the type of this select box specified by the type attribute.