Easy Tutorial
❮ Jsref Endswith Met His Forward ❯

HTML DOM


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. Use this type of element if you want to submit data that is not directly entered by the user.

Each occurrence of the <input type="hidden"> tag in an HTML form creates a Hidden object.

You can access a specific hidden input field by traversing 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 value attribute of the hidden field. Yes

Standard Properties and Events

The Hidden object also supports standard properties and events.

❮ Jsref Endswith Met His Forward ❯