DOM Input Hidden Object
The Input Hidden object represents a hidden input field in an HTML form.
For each <input type="hidden">
tag in an HTML form, a Hidden object is created.
The Input Hidden object can be accessed by searching through the elements[] array of the form, or by using document.getElementById().
Properties
Property | Description |
---|---|
alt |
Sets or returns an alternate text to display if a browser does not support hidden fields |
form |
Returns a reference to the form that contains the hidden field |
name |
Sets or returns the name of a hidden field |
type |
Returns the type of form element a hidden input field is |
value |
Sets or returns the value of the value attribute of the hidden field |
Standard Properties and Methods
This object also supports the standard properties and methods.
Standard Events
This object also supports the standard events.