Javascript Reference
Categories: styleElement

javascript styleElement disabled

@March 15, 2008, 1:22 a.m.
disabledFirefox/Netscape/NN 6 IE 4 Chrome/Safari/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


Powered by Linode.