Hidden value property
Hidden Object
Definition and Usage
The value property sets or returns the value of the value attribute of the hidden input field.
The value property defines the default value of the hidden field.
Syntax
Set the value attribute:
hiddenObject.value="
value
"
Return the value attribute:
hiddenObject.value
Browser support





All major browsers support the value property.
Example
Example
The following example gets the value of the hidden field:
Try it »
Hidden Object