Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |
Sets or retrieves the persisted representation of the style rule.
Syntax
object . cssText [ = sTxt ]Possible Values
sTxt | String that specifies or receives the text. |
The property is read/write. The property has no default value.
Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties .
Example
This example uses the cssText property to retrieve the Cascading Style Sheets (CSS) style set on an object.
<P ID=oPara STYLE="color:'green'; font-weight:bold"> This is the test paragraph.</P> :Standards Information
There is no public standard that applies to this property.
Applies To
|
runtimeStyle , style , styleSheet |
Home | Top | Free Ajax Editor | JavaScript Editor | Get Advanced JavaScript and Ajax Editor, Validator and Debugger! 1st JavaScript Editor. |