Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.


cssText Property

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> :
<BUTTON onclick="alert(oPara.style. cssText )"> Get CSS attributes</BUTTON>

Standards Information

There is no public standard that applies to this property.

Applies To

[ Object Name ] Platform Version
Win16:
Win32:
Unix:
Mac:
Windows CE:
 
runtimeStyle , style , styleSheet
Home | Top | Free Ajax Editor | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.