check this out http://plugins.jquery.com/project/timers
----- Original Message ----- From: "James" <james.gp....@gmail.com>
To: "jQuery (English)" <jquery-en@googlegroups.com> Sent: Monday, August 17, 2009 1:35 PM Subject: [jQuery] Re: Timeout http://www.w3schools.com/js/js_timing.asp Depending on how you define "inactive" (e.g. no mouse movement, no keypress, etc.) you can have such events trigger a clear timeout to clear any existing timeout, and add a new 20 second timeout. This you can use jQuery for to help make things easier. http://docs.jquery.com/Events On Aug 15, 10:36 am, shaf <shaolinfin...@gmail.com> wrote:
Hi Guys How do I set a timeout in jquery ? E.g. if a page is inactive for 20 seconds a message pops up asking the user to refresh the page.