25.10. The Hidden Object

The HIDDEN object corresponds to elements created through <INPUT TYPE="HIDDEN" ...>. Objects of this type are usually accessed through the elements property of Form or, if both the form and the hidden element are named, through document.formName.elementName.

Properties

form This read-only property refers to the Form object that holds this element.

name This read-only property gives the name of the element, as specified by the NAME attribute.

type This read-only property contains the value hidden.

value This property gives the string that is sent along with the name when the form is submitted. It is read/write.

Methods

None.

Event Handlers

None.

Get Core Web Programming, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.