EN
此内容没有您的语言版本,但有英语版本。

status property

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

Syntax

JavaScript

p = object.status

 

Property values

Type: Boolean

false (false)

Default. Control is not selected.

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" 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

input type=button
input type=checkbox
input type=radio
textArea

 

 

显示:
© 2014 Microsoft