JavaScript: The Definitive Guide

Previous Chapter 21
JavaScript Reference

Checkbox.checked Property


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


Navigator 2.0, Internet Explorer 3.0




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


Previous Home Next
Checkbox.blur() Book Index

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