JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Element.defaultChecked Property

Name

Element.defaultChecked Property--- a Checkbox or Radio element's default status

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

element.defaultChecked

Description

The defaultChecked property is a read-only Boolean value that specifies whether a Checkbox or Radio element is checked by default. This property has no meaning for other form elements. This property corresponds to the CHECKED attribute in the HTML <INPUT> tag that created the form element. If CHECKED was present then defaultChecked will be true. Otherwise, defaultChecked will be false.

The defaultChecked property is used to restore the Checkbox or Radio element to its default value when the form is reset.

See Also

"Checkbox", "Element", "Radio"


Previous Home Next
Element.click() Book Index Element.defaultValue

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell
Hosted by uCoz