HTML and CSS Reference
In-Depth Information
window
document
form
checkbox
Figure 11.43 How the checkbox object is created within the JavaScript hierarchy.
Table 11.19 Properties of the checkbox Object
Property
What It Describes
accessKey
Sets or returns the keyboard key to access a checkbox.
alt
Sets or returns an alternate text to display if a browser does not
support checkboxes.
checked
Returns true if the checkbox is checked.
defaultChecked
Returns true if the <input> tag includes the checked attribute, a default
box that is initially checked; otherwise, returns false.
disabled
Sets or returns whether or not a checkbox should be disabled.
form
The name of the form where the checkbox is defined.
id
Sets or returns the id of a checkbox.
name
A string that names the checkbox.
tabIndex
Sets or returns the tab order for a checkbox.
type
The type of input device; i.e., checkbox.
value
The text assigned to the value attribute.
 
Search WWH ::




Custom Search