status Property | Internet Development Index |
Sets or retrieves the value indicating whether the control is selected.
Syntax
HTML N/A Scripting object.status [ = bStatus ]
Possible Values
bStatus Boolean that specifies or receives one of the following values.
false Default. Control is not selected. true Control is selected. null Control is not initialized. The property is read/write. The property has a default value of false.
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.
Example
This example uses the status property to control a check box that is disabled by default.
<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>.
Standards Information
There is no public standard that applies to this property.
Applies To
INPUT type=checkbox, INPUT type=radio, TEXTAREA