How detect any of all events using jquery?
<p>I have function to detect idle state of user. I want to update database if any of the event occurs.Now i have script like this</p>

<pre><code>$("body").mousemove(function(event) {
myfuction();
});
</code></pre>

<p>I want to convert above script like this</p>

<pre><code>$("body").anyOfTheEvent(function(event) {
myfuction();
});
</code></pre>

<p>How can i do this?</p>
