Hidden
JavaScript 1.0+, JScript 1.0+ Nav2+, IE 3+, Opera3+ Syntax
Core client-side JavaScript object.
Description
The Hidden object is created with the HTML <input> tag. Specifying the TYPE parameter of the <input> tag as hidden creates the Hidden object. It is a text object that is suppressed from form display in an HTML form. The Hidden object is primarily used for passing name/value pairs from a form. Table 7.29 shows the properties of the Hidden object.
Property | Description |
---|---|
form | Specifies the form containing the Hidden object. |
name | Refers to the name of Hidden object. |
type | Refers to HTML TYPE attribute of Hidden object. |
value | Refers to HTML VALUE attribute of Hidden object. |
Example ...
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.