Checkbox.defaultChecked (Property)

The original initial default state of a checkbox.

Availability:

DOM level - 1
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Property/method value type:Boolean primitive
JavaScript syntax:-myCheckbox.defaultChecked
HTML syntax:<INPUT CHECKED>

The defaultChecked state of an Input item is the value that was defined in the HTML document source when the page was loaded. You can use this value if you need to reset the status of a page or determine whether the user has changed the settings on an input item since the page was loaded.