What’s the most simple way to detect user inactivity and ask him if he’s there?
Basically, after 3 minutes of the user not clicking on anything on the site, I’d like to ask him if he’s there. He click’s the OK button of a prompt of sorts and the entire page reloads.
Is there a jQuery script for this?
Here is a jquery plugin “idleTime” that seems designed to do exactly what you need http://paulirish.com/2009/jquery-idletimer-plugin/
Demo
Here is a simple implementation: