August 1999
Intermediate to advanced
1488 pages
72h 53m
English
document.form. checkbox.defaultChecked
The defaultChecked property holds the initial state of a check box as defined by the checked attribute of the <input> tag. Because this property only holds the initial state of the check box, it is a read-only Boolean value.
In Listing 7.39, the defaultChecked property is used to reset the car door check boxes to their initial state.
<html> <h2>Car Purchase Sheet</h2> Step1: Please select the door style you want on your new car:<BR> <form name="orderForm"> <input type="checkbox" name="door4">4 doors<br> <input type="checkbox" name="door2" ... |
Read now
Unlock full access