Javascript Reference
Categories: styleElement

javascript styleElement type

@March 15, 2008, 1:22 a.m.
typeFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  

Read/Write  

This is the style sheet MIME type specified by the type attribute of the style element.

 
Example
 
if (document.getElementById("myStyle").type == "text/css") {
    // unlikely to be anything else
}
 
Value

MIME type string.

 
Default

text/css


Powered by Linode.