Thanks to visit codestin.com
Credit goes to www.tutorialspoint.com

What is onmouseenter Event in JavaScript



The onmouseenter event triggers when you mouse hover the pointer.

Example

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

<html>
   <head>
      <script>
         <!--
            function sayHello() {
               alert("Mouse Hover")
            }
         //-->
      </script>
   </head>

   <body>
      <p onmouseenter = "sayHello()">This is demo text for mouseenter event.</p>
   </body>
</html>
Updated on: 2020-06-19T11:06:58+05:30

283 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements