selectorText
selectorText gets/sets the textual representation of the selector for the rule set.
Syntax
text = cssRule.selectorText cssRule.selectorText = textParameters
text is a string containing the text of the selector.
Example
// for cssrule: body { background-color: darkblue; } cssrule = document.styleSheets[1] XXX. selector = cssrule.selectorText; // selector is now "body"
Notes
The implementation may have stripped out insignificant whitespace while parsing the selector.
Specification
Netscape Communications http://developer.netscape.com |