Hidden Object
For each instance of an HTML <input type="hidden"> tag on a form, a
Hidden
object is created.
All Hidden objects are stored in the elements array of the corresponding
form. You can access a Hidden object by indexing this array - either by number
(0 represents the first element in a form) or by using the value of the name
attribute.
The Hidden object's properties are
described below:
N: Netscape (including Mozilla when N6 or higher), IE: Internet Explorer, W3C: World Wide Web Consortium (Internet Standard)
Properties
Syntax: object.property_name
Property |
Description |
N |
IE |
W3C |
defaultValue |
Sets or returns the initial value of the hidden field |
2 |
3 |
Yes |
form |
Returns a reference to the hidden field's parent form |
2 |
3 |
Yes |
id |
Sets or returns the id of the hidden field (In IE 4 this
property is read-only) |
|
4 |
No |
name |
Sets or returns the name of the hidden field |
2 |
3 |
Yes |
type |
Returns the type of the form element. For a hidden object it will
always be "hidden" |
3 |
4 |
Yes |
value |
Sets or returns the value of the value attribute of the
hidden field |
2 |
3 |
Yes |
|