ownerRule property

Retrieves a value that indicates whether this style sheet comes from an @import rule or a link (an element or processing instruction).

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

 

Syntax

JavaScript

p = object.ownerRule

 

Property values

Type: Object

a value that indicates whether the style sheet comes from an @import rule or a link.

Standards information

Remarks

If the style sheet comes from an @import rule, the ownerRule property will contain a CSSImportRule object, and the ownerNode property will be null. If the style sheet comes from a link, the ownerRule property will be null, and the ownerNode will contain the node.

See also

styleSheet
cssRules

 

 

Show:
© 2014 Microsoft