DOM Objects
DOM Anchor
DOM Applet
DOM Area
DOM Base
DOM Basefont
DOM Body
DOM Button
DOM Checkbox
DOM Document
DOM Event
DOM FileUpload
DOM Form
DOM Frame
DOM Frameset
DOM Hidden
DOM History
DOM Iframe
DOM Image
DOM Link
DOM Location
DOM Meta
DOM Navigator
DOM Option
DOM Password
DOM Radio
DOM Reset
DOM Screen
DOM Select
DOM Style
DOM Submit
DOM Table
DOM TableData
DOM TableHeader
DOM TableRow
DOM Text
DOM Textarea
DOM Window

Hidden Object

For each instance of an HTML <input type="hidden"> tag on a form, a Hidden object is created.

All Hidden objects are stored in the elements array of the corresponding form. You can access a Hidden object by indexing this array - either by number (0 represents the first element in a form) or by using the value of the name attribute.

The Hidden object's properties are described below:

N: Netscape (including Mozilla when N6 or higher), IE: Internet Explorer, W3C: World Wide Web Consortium (Internet Standard)

Properties

Syntax: object.property_name

Property Description N IE  W3C
defaultValue Sets or returns the initial value of the hidden field 2 3 Yes
form Returns a reference to the hidden field's parent form 2 3 Yes
id Sets or returns the id of the hidden field (In IE 4 this property is read-only)   4 No
name Sets or returns the name of the hidden field 2 3 Yes
type Returns the type of the form element. For a hidden object it will always be "hidden" 3 4 Yes
value Sets or returns the value of the value attribute of the hidden field 2 3 Yes