Javascript Reference
Categories: cssRule

javascript cssRule selectorText

@March 15, 2008, 1:22 a.m.
selectorTextFirefox/Netscape/NN 6 IE 5 Chrome/Safari/DOM 2  

Read/Write  

Indicates the selector portion of the style sheet rule. Although this property is read/write (except in IE 5/Mac), changes do not influence the object or rendering.

 
Example
 
document.styleSheets[0].cssRules[2].selectorText = "td.leftHeaders";
 
Value

String.

 
Default

None.

 
W3C DOM CSSRule Types
 
CSSPageRule
CSSStyleRule

Powered by Linode.