status Property
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
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. INPUT TYPE=checkbox, INPUT TYPE=radio
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.