<html> <head> <title>Mouse Event Demo</title> <script> function over() { document.frm1.b1.value="Mouse Over"; } function out() { document.frm1.b1.value="Mouse out"; } </script> </head> <body> <form name="frm1"> <input type="button" name="b1" value="click" onmouseover="over()" onmouseout="out()"> </form> </body> </html>