rule.parentStyleSheet (Property)

The style sheet that owns this rule object.


DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:StyleSheet object
JavaScript syntax:-myRule.parentStyleSheet

There is a hierarchy of objects contained in the CSS style sheet support. Rules describe a style and are collected together into owning parent style sheets.

See also:Hierarchy of objects