status property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the value indicating whether the control is selected.
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
VARIANT_FALSE (false)
-
Default. Control is not selected.
VARIANT_TRUE (true)
-
Control is selected.
NULL (null)
-
Control is not initialized.
Remarks
The status property of the textArea object has a default value of null.
Setting the status property of a textArea object updates the value of the property and causes the onpropertychange event to fire. However, this change has no visual effect on the textArea object.
Examples
This example uses the status property to control a check box that is disabled by default.
Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/status.htm
<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>.
Build date: 3/8/2012