Language References
Sets or retrieves whether the check box or radio button is selected.
HTML |
N/A |
Script |
object.status [ = bStatus ] |
false |
Indicates that the control is not selected. |
true |
Indicates that the control is selected. |
This property returns or accepts only a boolean value, meaning true if set, and false if not. The property is read/write with a default value of false.
In the following example, the status property is used to control a disabled check box.
<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>.
This feature requires Microsoft® Internet Explorer® 4.0 or later.
Show me
INPUT TYPE=checkbox, INPUT TYPE=radio