25.6. The Element Object

The Element object corresponds to a form element and is contained in the elements array of the Form object. The Form objects are accessible through the document.forms array or, if named, by document.formName. Rather than treating elements of the elements array as Element objects, you are usually better off to treat them as Button objects, Checkbox objects, and so forth, based on their more specific types. In general, you should name objects and access them through their name.

Properties

The following only lists the more specific type of Element that uses these properties. See the sections describing those objects for details on the properties.

checked This property is used by Checkbox and Radio objects.

defaultChecked ...

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.