parentStyleSheet property

Retrieves the style sheet that contains the current rule.

Document Object Model (DOM) Level 2 Style Specification, Section 2.2

Syntax

JavaScript

p = object.parentStyleSheet

Property values

Type: Object

the style sheet that contains this rule.

Standards information

See also

CSSFontFaceRule
CSSImportRule
CSSMediaRule
CSSNamespaceRule
CSSRule
page
rule

 

 

Show:
© 2014 Microsoft