The following values can be assigned to the type attribute:
button
checkbox
file
hidden
image
password
radio
reset
submit
text
textarea
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:
select-multiple
select-one
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.
Prev | Home | Next |
Input.tabIndex | Up | Input.value |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |