status property
Sets or retrieves the value indicating whether the control is selected.
Syntax
| JavaScript | |
|---|
Property values
Type: Boolean
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" checked disabled type="checkbox"> : <span onclick="oCheckbox.status=false" style="font-weight: bold">I disagree</span>. <span onclick="oCheckbox.status=true" style="font-weight: bold">I agree</span>.
See also
Show: