javascript styleElement disabled
| disabled | NN 6 IE 4 DOM 1 |
| Read/Write | |
|
Specifies whether rules in the style sheet should be applied to their selected elements. Although the corresponding disabled attribute does not work in Internet Explorer 4, setting the disabled property to true does, in fact, turn off the entire style sheet. During page authoring, you can create a button that toggles style sheets on and off to see how the page looks in all types of browsers. |
|
| Example | |
document.getElementById("mainStyle").disabled = true;
|
|
| Value | |
Boolean value: true | false. |
|
| Default | |
false |
|
Previous: javascript styleElement media
1941,Nickname,Homepage or email,Comments here,Add comment
