
parentStyleSheet
Returns the stylesheet that is including this one, if any.
Syntax
parent = stylesheet.parentStyleSheet
Parameters
parent is an object reference
Example
// find the top level stylesheet
if (stylesheet.parentStyleSheet) {
sheet = stylesheet.parentStyleSheet;
} else { sheet = stylesheet; }
|
Notes
This property returns NULL is the current stylesheet is a top-level stylesheet or if stylesheeet inclusion is not supported.
Specification
parentStyleSheet
Netscape Communications
http://developer.netscape.com
|