| input (type="checkbox") | NN 2 IE 3 DOM 1 |
|
| |
|
The checkbox object is a form control generated
with an input element whose
type attribute is set to
"checkbox". Employ this element only as a user
interface element for user on-off choices, not as a navigation
button. In IE 5 and later for Windows and in Netscape 6, you can
adjust the size of the checkbox via style sheet height and width
attributes, but only Netscape 6 automatically scales the size of the
checkmark optimized for the checkbox rectangle's
size and keeps the baselines of surrounding text aligned with the
rectangle's bottom.
|
| |
| HTML Equivalent |
| |
<input type="checkbox">
|
| |
| Object Model Reference |
| |
[window.]document.formName.elementName
[window.]document.forms[i].elements[i]
[window.]document.getElementById("elementID")
|
| |
| Object-Specific Properties |
| |
| checked | dataFld | dataSrc | defaultChecked | form |
| indeterminate | name | status | type | value |
|
| |
| Object-Specific Methods |
| |
|
|
| |
| Object-Specific Event Handler Properties |
| |
| Handler | NN | IE | DOM | | onblur | 6 | 4 | 2 |
| onclick | 3 | 4 | 2 |
| onfocus | 6 | 4 | 2 |
| onmousedown | 4 | 4 | 2 |
| onmousemove | 6 | 4 | 2 |
| onmouseout | 6 | 4 | 2 |
| onmouseover | 6 | 4 | 2 |
| onmouseup | 4 | 4 | 2 |
|