Javascript language

adplus-dvertising
Change back Ground Color onMouseOver using JavaScrip
Previous Home Next

Step 1. Written below code in your application.

<html>
<body>
<a href="" onmouseover ="document.bgColor='silver'"><b>Silver</b></a>
 <a href="" onmouseover="document.bgColor='green'"><b>Green</b></a>
 <a href="" onmouseover="document.bgColor='blue'"><b>Blue</b></a>
 <a href="" onmouseover="document.bgColor='red'"><b>Red</b></a>    
</body>
</html>

Step 2. Run the Application. When mouse on silver label back ground color changed to silver.

Previous Home Next