Jquery document click function - Javascript jQuery

Javascript examples for jQuery:Document

Description

Jquery document click function

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-3.1.1.js"></script> 
   </head> 
   <body> 
      <a class="pushStateLink" href="">Click</a> 
      <script type="text/javascript">
 $(document).on("click",".pushStateLink",function() {
    console.log("pushstate");
  });/*  ww  w  .ja  va 2 s .  c om*/

      </script>  
   </body>
</html>

Related Tutorials