status Property

Internet Development Index

Sets or retrieves the value indicating whether the control is selected.

Syntax

HTMLN/A
Scriptingobject.status [ = bStatus ]

Possible Values

bStatusBoolean that specifies or receives one of the following values.
falseDefault. Control is not selected.
trueControl is selected.
nullControl 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>.
This feature requires Microsoft® Internet Explorer 4.0 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Standards Information

There is no public standard that applies to this property.

Applies To

INPUT type=checkbox, INPUT type=radio, TEXTAREA