title: Is there a generic window.onevent in javascript?
body: <p>I am trying to make a JavaScript (jQuery is fine as well) function to check how long a user has been inactive for on the current page. I know that in JavaScript there are specific window events like <code>window.onload</code>, <code>window.onmousemove</code>, etc. But I was wondering if there was any function that captures any event (such as a mouse move, key press, or anything else that indicates activity by the user on the page) without having to set all of those event listeners manually?</p>