What is onmousemove event in JavaScript?

JavascriptWeb DevelopmentFront End Technology

The onmousemove event triggers when the mouse pointer moves.

Example

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

<html>
   <head>
      <script>
         <!--
            function sayHello() {
               alert("Mouse Move")
            }
         //-->
      </script>
   </head>
   <body>
      <p onmousemove = "sayHello()">This is demo text for mousemove event.</p>
   </body>
</html>
raja
Published on 16-Feb-2018 10:31:47
Advertisements