HTML DOM CheckboxObject
Checkbox Object
The Checkbox object represents a checkbox in an HTML form.
In an HTML document, each time <input type="checkbox"> appears, a Checkbox object is created.
You can access a checkbox by iterating through the form's elements[] array, or by using document.getElementById().
Checkbox Object Properties
W3C:W3C Standard.
| Property | Description | W3C |
|---|---|---|
| disabled | Sets or returns whether the checkbox should be disabled. | Yes |
| checked | Sets or returns whether the checkbox should be checked. | Yes |
| defaultChecked | Returns the default value of the checked attribute. | Yes |
| form | Returns a reference to the form that contains the checkbox. | Yes |
| name | Sets or returns the name of the checkbox. | Yes |
| type | Returns the form element type of the checkbox. | Yes |
| value | Sets or returns the value of the value attribute of the checkbox. | Yes |
Standard Properties and Events
Checkbox objects also support standardpropertiesandevents。
Other extensions