title: How to bind mousemove scroll and resize all into one function
body: <p>Currently, I "do stuff" when the mouse moves. However, I also want to do the exact same thing if the user resizes the browser or scrolls down the browser.
      jQuery(document).bind('mousemove',function(e){ 
              var x, y;
              x = e.pageX; // x coord
              y = e.pageY; // y coord
              //other stuff
      });</p>
  
  <p>I tried putting doing </p>
  
  <pre><code>jQuery(document).bind('mousemove resize scroll',function(e){...
  </code></pre>
  
  <p>but it didn't work. I also tried </p>
  
  <pre><code>jQuery(document, window).bind('mousemove resize scroll',function(e){...
  </code></pre>
  
  <p>but it also didn't work.</p>
  
  <p>I also know that you can detect scroll using</p>
  
  <pre><code>$(window).scroll(function(){
  </code></pre>
  
  <p>and detect resize using</p>
  
  <pre><code>$(window).resize(function() {
  </code></pre>
  
  <p>But the if I use those detections, I won't have the "e" argument to get the x and y coordinates of the mouse</p>
  
  <p>How do I bind all 3 events all into one function?</p>
  
  <p>Thanks</p>