Sets or retrieves the value indicating whether the control is selected.
dhtml语法
HTML | N/A |
---|
Scripting | object.status [ = bStatus ] |
---|
DHTML可能的值
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.
DHTML代码范例
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.
是否符合公共标准
There is no public standard that applies to this property.
Applies To