HTML DOM HiddenObject
Hidden Object
The Hidden object represents a hidden input field in an HTML form.
This type of input element is actually hidden. The value attribute of this invisible form element stores an arbitrary string to be submitted to the web server. If you want to submit data that is not directly entered by the user, use this type of element.
In an HTML form, each time the <input type="hidden"> tag appears, a Hidden object is created.
You can access a hidden input field by iterating through the form's elements[] array, or by using document.getElementById().
Hidden Object Properties
W3C:W3C Standard.
| Property | Description | W3C |
|---|---|---|
| form | Returns a reference to the form that contains the hidden field. | Yes |
| name | Sets or returns the name of the hidden field. | Yes |
| type | Returns the form type of the hidden input field. | Yes |
| value | Sets or returns the value of the hidden field's value attribute. | Yes |
Standard Properties and Events
The Hidden object also supports standardpropertiesandevents。
Other Extensions