code for mouse over style using html?

Posted by aswinialuri-19361 under JavaScript category on | Points: 40 | Views : 2184
code in .aspx page

<form id="form1" runat="server">
<h2 onmouseover="style.color='green'" onmouseout="style.color='red'">Welcome to mouse over colour</h2>

by using this code we can change text color when mouse in the text color will be changed and mouse out te text color will be changed

Comments or Responses

Login to post response