Get cssText : cssText : Style JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » 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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Style
» cssText