Javascript Reference
Categories: InputTypeCheckbox

javascript InputTypeCheckbox Description

@March 15, 2008, 1:22 a.m.
input (type="checkbox")Firefox/Netscape/NN 2 IE 3 Chrome/Safari/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
 
checkeddataFlddataSrcdefaultCheckedform
indeterminatenamestatustypevalue
 
Object-Specific Methods
 
handleEvent[ ]
 
Object-Specific Event Handler Properties
 
HandlerFirefox/Netscape/NNIEChrome/Safari/DOM
onblur642
onclick342
onfocus642
onmousedown442
onmousemove642
onmouseout642
onmouseover642
onmouseup442

Powered by Linode.