title: Intercept all mouse events
body: <p>I'm looking for a way to intercept all mouse events (especially clicks) on a web page.</p>
  
  <p>My first instinct was <code>$('body').click(....)</code></p>
  
  <p>But that's not capturing the event if any other Handler is attached for a particular event.</p>
  
  <p>To put the question in context: I'm writing a "statistics" module for my web app. We want to keep track of all user interactions on the pages to adapt. If we see they don't use a functionality we will add a tooltip for example. </p>
  
  <p>I have following frameworks : </p>
  
  <p>jQuery, Knockout and a little Framework "home made" </p>
  
  <p>What I want is a function which is called on each click with mouse position. </p>