title: onmouseover event on a button
body: <p>I am new to HTML and javascript. I have written below code to execute over() of javascript when the mouse hovers over a button but the code is not working.</p>
  
  <p>Kindly suggest some changes in the code to get the it running.</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;script type="text/javascript"&gt;
          function over()
          {
              document.getElementById("b1").value="You have hovered mouse over me";
          }
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;button onmouseover="over()" id="b1"&gt;Hover mouse over me&lt;/button&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>