JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference
Next
 

Checkbox.checked Property

Name

Checkbox.checked Property---whether a Checkbox is checked

Availability

Navigator 2.0, Internet Explorer 3.0

Synopsis

checkbox.checked

Description

checked is a read/write Boolean property of the Checkbox object. If the Checkbox is checked, then the checked property is true. If the Checkbox is not checked, then checked is false.

If you set checked to true, then the Checkbox will appear checked. Similarly, if you set this property to false, the Checkbox will appear unchecked. Note that setting the checked property does not cause the Checkbox's onClick event handler to be invoked.

See Also

"Checkbox"


Previous Home Next
Checkbox.blur() Book Index Checkbox.click()

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