javascript styleSheet parentStyleSheet

parentStyleSheetNN 6 IE 4 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


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