Javascript Reference
Categories: cssRule

javascript cssRule parentStyleSheet

@March 15, 2008, 1:22 a.m.
parentStyleSheetFirefox/Netscape/NN 6 IE 5(Mac) Chrome/Safari/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.


Powered by Linode.