Input.type (Property)

The type of a form input element.


DOM level - 1
JavaScript - 1.1
JScript - 1.0
Internet Explorer - 3.02
Netscape - 3.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myInputObject.type
HTML syntax:<INPUT TYPE="...">

The following values can be assigned to the type attribute:

The file value really represents a file-upload.

These values can be used in the type property of a Select object even though it is not derived from an Input object:

For a description of the input type Image, the MSIE and Netscape descriptions are separated because each browser uses a different object class and supports a different set of methods, properties and events.

Refer to the IMG object for MSIE and the Image object for Netscape.

DOM level 2 specifies that this property should not be read-only. This implies that DOM level 2 allows for the type of an input object to change. How the browsers cope with this, given that some of them create objects of specific classes for each type will be interesting to see.

See also:Button.type, BUTTON.type, Checkbox.type, File.Type, FileUpload.type, Hidden.type, Image object, Password.type, RadioButton.type, ResetButton.type, selection.type, SubmitButton.type, TEXTAREA.type, TextCell.type

Property attributes: