Sets or retrieves whether the check box or radio button is selected.
Syntax
HTML N/A Scripting object.status [ = bStatus ]
Possible Values
bStatus Boolean that specifies one of the following values:
false Control is not selected. true Control is selected. The property is read/write with a default value of false.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.
Example
This example uses the status property to control a check box that is disabled by default.
Sample Code
<INPUT ID=oCheckbox TYPE=checkbox CHECKED DISABLED> : <SPAN onclick="oCheckbox.status=false" STYLE="font-weight:bold">I disagree</SPAN>. <SPAN onclick="oCheckbox.status=true" STYLE="font-weight:bold">I agree</SPAN>.
Applies To
INPUT TYPE=checkbox, INPUT TYPE=radio