Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
selectorText (rule Object)

selectorText property

Retrieves a string that identifies which elements the corresponding style sheet rule applies to.

Syntax

JavaScript

p = object.selectorText

 

Property values

Type: String

the element.

Remarks

Selector text can contain either a simple selector (such as h1), or a contextual selector (such as p em) that consists of several simple selectors. Compound selectors (such as b strong) are stored as separate rules in the collection.

See also

rule
IHTMLStyleSheetRulesCollection
rules

 

 

Show:
© 2015 Microsoft