rule.cssText (Property)

The CSS text belonging to a style sheet rule.

Availability:

DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myRule.cssText

This is the text that would be entered into a style sheet to describe a particular CSS rule. Since it is returned as text, there is no implied structure to it so you will need to parse it out if necessary.