JavaScript Hidden Object

The JavaScript Hidden object is a property of the form object. Hidden object FORM syntax is:

<INPUT TYPE="hidden" NAME="objectName" VALUE="hiddenValue">

Here's how it looks:

Can you see it?

This object is similar to the FORM text object but it cannot be seen by the user. The VALUE is optional. When the form is submitted, the name and value of object is sent as part of the POST or GET stream. The value may be any text from a previous form. The hidden object is useful for storing previous form information when there are several pages of forms.


  • form - The form object that includes the hidden object.
  • name - The name of the hidden object.
  • type - The type of element which is hidden.
  • value - The value of the hidden object.