<body> <div id="doc"> <h1>DOM Example: getStyle</h1> <p>This example demonstrates how to use Dom.getStyle to get the current style of an element.</p> <p>Click anywhere to get the background color of the red element and apply it to the gray element.</p> <div id="test"></div> <div id="end"></div> </div>
</body> </html>
Related Scripts with Example Source Code in same category :