Event triggered when the mouse leaves the specified element mouseleave method demonstration

From , 5 Years ago, written in JavaScript, viewed 146 times.
URL https://pastebin.vip/view/9af08cda
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js">
  5. </script>
  6. <script>
  7. $(document).ready(function(){
  8.   $("#p1").mouseleave(function(){
  9.     alert("Bye! You now leave p1!");
  10.   });
  11. });
  12. </script>
  13. </head>
  14. <body>
  15.  
  16. <p id="p1">This is a paragraph.</p>
  17.  
  18. </body>
  19. </html>
  20.  
  21. //javascript/8005

Reply to "Event triggered when the mouse leaves the specified element mouseleave method demonstration"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website