最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

DISABLED Attribute | disabled Property

Internet Development Index

Sets or retrieves the status of the object.

Syntax

HTML<ELEMENT DISABLED ... >
Scriptingobject.disabled [ = bDisabled ]

Possible Values

bDisabledBoolean that specifies or receives one of the following values.
falseDefault. Element is not disabled.
trueElement is disabled.

The property is read/write. The property has a default value of false.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

When an element is disabled, it appears dimmed and does not respond to user input. Disabled elements do not respond to mouse events, nor will they respond to the contentEditable property.

If an element's disabled property is set to false but it is contained within a disabled element, it cannot override the disabled state of its container.

Example

This example uses the disabled property to enable or disable a style object and a control.

<STYLE ID="oStyle">
.styletest{background-color: black; color: white;}
.styletest2{background-color: black; color: red;}
</STYLE>
<SCRIPT>
function fnSwitch(){
if(oParagraph.enablement == "enabled"){
// Use an arbitrary attribute to track the status.
oParagraph.enablement = "disabled";
oButton.value = "Set disabled to false";
oStyle.disabled = true;
oDisableMe.disabled = true;
}
else{
oButton.value = "Set disabled to true";
oParagraph.enablement = "enabled";
oStyle.disabled = false;
oDisableMe.disabled = false;
}
}
</SCRIPT>
...
<P enablement="enabled" ID="oParagraph" CLASS="styletest">
A paragraph of text.
<INPUT TYPE="button" ID="oDisableMe" CLASS="styletest"
VALUE="Demonstration Button" onclick="alert('Demonstration button')">
</P>
<INPUT TYPE="button" ID="oButton" VALUE="Set disabled to true"
onclick="fnSwitch()">
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

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

defaults, A, ACRONYM, ADDRESS, B, BDO, BIG, BLOCKQUOTE, BODY, BUTTON, CAPTION, CENTER, CITE, CODE, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, FIELDSET, FONT, FORM, hn, I, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LISTING, MARQUEE, MENU, NOBR, OL, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SELECT, SMALL, STRIKE, STRONG, STYLE, SUB, SUP, TEXTAREA, TT, U, UL, VAR, XMP

See Also

disabled
浙江省| 松阳县| 三江| 信丰县| 米脂县| 大埔区| 霍林郭勒市| 利辛县| 四川省| 广灵县| 静海县| 西乌珠穆沁旗| 车致| 丽江市| 黄山市| 海兴县| 马山县| 铜山县| 镇巴县| 新巴尔虎右旗| 大竹县| 舒城县| 仙桃市| 高邑县| 云霄县| 德江县| 安陆市| 茂名市| 襄垣县| 勐海县| 集贤县| 青浦区| 牙克石市| 清苑县| 阿拉善右旗| 策勒县| 化隆| 兴隆县| 昌吉市| 留坝县| 桐梓县|