Javascript Reference
Categories: cssRule

javascript cssRule type

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

Read-only  

Returns an integer corresponding to one of seven cssRule types, as defined by the W3C DOM. Every cssRule object in Netscape 6 comes equipped with plain-language constant properties corresponding to the rule types, as follows.

 
ConstantEquivalent integer
cssRuleReference.UNKNOWN_RULE 0
cssRuleReference.STYLE_RULE 1
cssRuleReference.CHARSET_RULE 2
cssRuleReference.IMPORT_RULE 3
cssRuleReference.MEDIA_RULE 4
cssRuleReference.FONT_FACE_RULE 5
cssRuleReference.PAGE_RULE 6
 
Example
 
var oneRule = document.styleSheets[2].cssRules[1];
if (oneRule.type == oneRule.IMPORT_RULE) {
    // process @import rule
}
 
Value

Integer.

 
Default

1

 
W3C DOM CSSRule Types

All.

atorvastatin 80mg drug <a href="https://lipiws.top/">buy atorvastatin online</a> order atorvastatin 10mg sale
Cmefef - 9 months
atorvastatin pill <a href="https://lipiws.top/">atorvastatin 20mg without prescription</a> atorvastatin tablet
Exqnva - 9 months

Powered by Linode.