Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
Specifies the persisted representation of the style rule.
Syntax
HTML N/A Scripting object.style.cssText [ = sTxt ]
Possible Values
The property is read/write with no default value.
sTxt String specifying the text.
Remarks
If a string is returned, it will break out the composite properties into individual attributes.
Example
The following example demonstrates the use of the cssText property to retrieve the CSS style set on an object.
Sample Code
<P ID=oPara STYLE="color:'green'; font-weight:bold">This is the test paragraph.</P> : <BUTTON onclick="alert(oPara.style.cssText)">Get CSS attributes</BUTTON>
Applies To
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.