Checkbox
The checkbox
form element.
Properties
| FF, IE 3 |
|
| FF, IE 3 | Read-only: Form containing the checkbox |
| FF, IE 3 | Name of a checkbox |
| FF, IE 3 | Read-only: Set to |
| FF, IE 3 | Value of the checkbox |
Example:
if (window.document.my_form.the_checkbox.checked == true) { alert("Thanks for clicking the checkbox!"); }
Handlers
| FF, IE 3 | Triggered when a visitor clicks the checkbox |
Methods
| FF, IE 3 | Simulates the act of clicking the checkbox |
Get The Book of JavaScript, 2nd 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.