The definition and usage of the Defaultchecked property:
This property can return whether the check box is selected by default.
Returns true if the default state is selected, otherwise false is returned.
Syntax structure:
Checkbox.defaultchecked
Description:the checkbox represents a CheckBox check box object.
Browser support:
This property is supported by the 1.IE browser.
2. Firefox supports this property.
This property is supported by the 3.Opera browser.
4. This property is supported by Google Chrome.
Instance code:
<! DOCTYPE html>
The above code can output the Defaultchecked property value of the check box object. Note that although the check box is later selected, it is unchecked by default, so the output value is still false.
The original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=6708
JavaScript's Checkbox.defaultchecked Property