<input> - hidden

HTML DOM Hidden Object

Hidden object

The Hidden object represents a hidden input field in an HTML form.

Input elements of this type are actually hidden. The value attribute of this invisible form element holds 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 time the <input type="hidden"> tag appears in an HTML form, a Hidden object is created.

You can access a hidden input field by iterating over the form's elements[] array, or by using document.getElementById().

Hidden Object Attributes

W3C: W3C standard.

formReturns a reference to a form that contains hidden fields.Yes
nameSets or returns the name of the hidden domain.Yes
typeReturns the form type that hides the input field.Yes
valueSets or returns the value of the value property of the hidden domain.Yes

Standard Properties and Events

Hidden objects also support standard properties and events .