JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference

Select.type Property


Select.type Property---type of form element


Navigator 3.0




type is a read-only string property shared by all form elements; it specifies the type of the element. The Select object is unusual in that there are two possible values for the type property. If the Select object allows only a single selection (i.e., if the MULTIPLE attribute does not appear in the object's HTML definition), the value of the type property is "select-one". If the MULTIPLE attribute does appear, the value of the type attribute is "select-multiple".

See Element.type for more information.

See Also

"Element.type", "Select"

Previous Home Next
Select.selectedIndex Book Index self

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz