Get cssText : cssText « Style « JavaScript Tutorial






<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>








22.4.cssText
22.4.1.Get cssText