What is onmouseover event in JavaScript?

JavascriptWeb DevelopmentFront End Technology

The onmouseover event triggers when the mouse pointer moves over an element.

Example

You can try to run the following code to learn how to work with onmouseover event in JavaScript −

<html>
   <head>
      <script>
         <!--
            function sayHello() {
               alert("Mouse Over")
            }
         //-->
      </script>
   </head>
   <body>
      <p onmouseover = "sayHello()">This is demo text for mouseover event.</p>
   </body>
</html>
raja
Published on 16-Feb-2018 10:34:59
Advertisements