Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML DOM Hidden object


May 06, 2021 JavaScript with HTML DOM Reference book


Table of contents


HTML DOM Hidden object


Hidden object

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

This type of input element is actually hidden. T he value property of this invisible form element holds any string to submit to the Web server. Use this type of element if you want to submit data that is not directly entered by the user.

In HTML forms, for every time a label appears, a Hidden object is created.

You can access a hidden input field by traversing the form's array of elements, or by using document.getElementById().


Hidden object properties

W3C: W3C standard.

Attributes describe W3C
form Returns a reference to a form that contains hidden domains. Yes
name Set or return the name of the hidden domain. Yes
type Returns the form type of hidden input domain. Yes
value Set or return the value of the Value property of the hidden domain. Yes

Standard properties and events

Hidden objects also support standard properties and events.