By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,528 Members | 1,330 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,528 IT Pros & Developers. It's quick & easy.

idle timer

P: 45

I would like to find out if anyone has setup a page to track if a page has been idle for a set amount of time. The timer would need to reset anytime something was done on the page. I have done this kind of thing with a windows application by watching the idle event, and by monitoring the root message loop. I am not as familar with the JavaScript event manager to know where to attach the event watcher to cover all events without setting it to happen on all objects. This seems a bit much.


Leo Smith
Programmer/Analyst Supervisor
Sep 8 '08 #1
Share this Question
Share on Google+
1 Reply

rnd me
Expert 100+
P: 427
document.onkeypress and document.onmousemove should cover your bases. they fire whenever any element is interacted with.
Sep 9 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.