TOC PREV NEXT INDEX

domref



selectorText


selectorText gets/sets the textual representation of the selector for the rule set.

Syntax

text = cssRule.selectorText
 
cssRule.selectorText = text
 

Parameters

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

DOM Level 2 Style - cssRule


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX