onmouseover and onmouseout event



Write a javascript code to implement onmouseover and onmouseout Event .

<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>

Output: