javascript cssRule parentStyleSheet

parentStyleSheetNN 6 IE 5(Mac) DOM 2  

Read-only  

Refers to the styleSheet object that contains the current cssRule. Allows a function that might be passed a reference to a cssRule object to obtain a reference to the containing styleSheet object, possibly to learn more about what else is in the style sheet.

 
Example
 
var ss = document.styleSheets[0].cssRules[3].parentStyleSheet;
 
Value

styleSheet object reference.

 
Default

Current object.

 
W3C DOM CSSRule Types

All.


429,Nickname,Homepage or email,Comments here,Add comment