Latest web development tutorials

HTML DOM Hidden Objects

Hidden Objects

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

This type of input elements is actually hidden. The value attribute invisible form elements holds any string to be submitted to a Web server. If you want to submit data is not direct user input, then, it is this type of element is used.

In the HTML form <input type = "hidden"> tag appears every time a Hidden object is created.

You can iterate through the form elements [] array to access a hidden input field or by using document.getElementById ().


Hidden Object Properties

W3C: W3C standards.

属性 描述 W3C
form 返回一个对包含隐藏域的表单的引用。 Yes
name 设置或返回隐藏域的名称。 Yes
type 返回隐藏输入域的表单类型。 Yes
value 设置或返回隐藏域的 value 属性的值。 Yes

Standard properties and events

Hidden Object also supports the standard attributes and events .