Detect any of all events using jquery - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:bind

Description

Detect any of all events using jquery

Demo Code

ResultView the demo in separate window

<html lang="en">
   <head> 
      <title>  radin reth</title> 
   </head> 
   <body translate="no">   
      <div id="demo"></div>  
      <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
      <script>
      $(document).bind('click mousemove', function(evt)       {
        document.getElementById("demo").innerHTML = Math.random();
      });//from w  w w .j a v a 2 s. c  o m
    
      </script>  
   </body>
</html>

Related Tutorials