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

disabled Property

Internet Development Index

Sets or retrieves whether a style sheet is applied to the object.

Syntax

HTMLN/A
Scriptingobject.disabled [ = bDisabled ]

Possible Values

bDisabledBoolean that specifies or receives one of the following values.
falseDefault. Style sheet is applied to the object.
trueStyle sheet is not applied to the object.

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 a style is disabled, none of the rules render.

The value of this property can also change per media-dependent style sheets.

The disabled property applies to the style object, not the STYLE property.

Example

This example uses the disabled property to indicate whether a style sheet is applied to the body element.

<STYLE>
BODY {background-color: #000000; color: #FFFF00;}
</STYLE>
<SCRIPT>
function fnToggle(){
var oStyle=document.styleSheets[0];
if(oStyle.disabled==true){
oStyle.disabled=false;
}
else{
oStyle.disabled=true;
}
}
</SCRIPT>
<BODY>
<P>
Click Toggle Style Sheet to enable/disable
styles applied to the BODY element.
</P>
<P>
<INPUT TYPE="button"
VALUE="Toggle Style Sheet"
onclick="fnToggle()">
</P>
</BODY>

Standards Information

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

Applies To

LINK, STYLE, styleSheet

See Also

disabled
女性| 萨迦县| 聂荣县| 共和县| 彭州市| 肥西县| 钟祥市| 桓台县| 普兰店市| 灵寿县| 全州县| 肥乡县| 双城市| 通渭县| 衢州市| 贡山| 库尔勒市| 德昌县| 镇赉县| 华蓥市| 清丰县| 盘山县| 肥城市| 尼勒克县| 东光县| 蚌埠市| 镶黄旗| 定远县| 锦州市| 邳州市| 云霄县| 盱眙县| 大理市| 枞阳县| 德惠市| 尖扎县| 浙江省| 贵港市| 古丈县| 鄂托克前旗| 沂源县|