selectorText property (CSSPageRule, CSSStyleRule, rule)
Sets or retrieves a string that identifies the selector part of the current rule.
You can find the related objects in the Supported by objects section below.
This property is read/write.
String that specifies or retrieves to which elements a style rule applies.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the selectorText property:
Did you find this example helpful?
User Contributed Comments