Javascript Reference
Categories: styleSheet

javascript styleSheet parentStyleSheet

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

Read-only  

For a styleSheet object generated by virtue of inclusion with an @page rule, the parentStyleSheet property returns a reference to the styleSheet (created as a link or style element) object that imported the current style sheet. For a nonimported style sheet, the property returns null.

 
Example
 
var myMaker = document.styleSheets[0].parentStyleSheet;
 
Value

Reference to a styleSheet object.

 
Default

null


Powered by Linode.