Javascript Reference
Categories: styleSheet

javascript styleSheet type

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

Read-only  

Returns the style sheet MIME type specified by the type attribute of the style or link element.

 
Example
 
if (document.styleSheets[0].type == "text/css") {
    ...
}
 
Value

String (text/css for typical CSS style sheets).

 
Default

None.


Powered by Linode.