JavaScript Tutorial/Style/cssText
Get cssText
<html>
<head>
<title>Style Example</title>
</head>
<body>
<P>Click on the square.</p>
<div id="div1"
style="background-color: red; height: 50px; width: 50px"
onclick="alert(this.style.cssText)"></div>
</body>
</html>