Jquery on method with window or document - Javascript jQuery

Javascript examples for jQuery:Document

Description

Jquery on method with window or document

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://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
  <script type="text/javascript">
    $(window).load(function(){//from w  ww  . j a v a  2  s.c  o m
$(document).ready(function(){
    $(document).on('mouseup', function(e) {
         console.log((" mouse up \n"));
        })
    });
    });

      </script> 
 </head> 
 <body> 
  <div id="wrap" style="background-color:gray; height:2000px;"> 
  </div>  
 </body>
</html>

Related Tutorials