Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3443606
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:48:43+00:00 2026-05-18T08:48:43+00:00

Is there a Javascript library (preferably a jQuery plugin) or simple mechanism to check

  • 0

Is there a Javascript library (preferably a jQuery plugin) or simple mechanism to check if a visitor is idle? For example, if the visitor to a webpage has been there more than 5 minutes only moving their mouse but not clicking any buttons or pressing any keys, then call a particular Javascript function.

It seems like I could just call setTimeout() for my desired idle time and then call clearTimeout() upon any mouse click or keyboard press by having something like $('body').click(clearTimeout(…. But I’m sure there are issues I don’t want to have to figure out. The one thing I definitely don’t want to have happen is for my site to think someone’s been idle and they haven’t really been. The other way around is ok.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:48:43+00:00Added an answer on May 18, 2026 at 8:48 am

    Yes, very possible and there are a couple sites that use this (like banks and Mint) with great success. Take a look at these two blog posts:

    http://www.erichynds.com/jquery/creating-a-mint-com-style-idle-logout-timer-using-jquery/
    http://www.erichynds.com/jquery/a-new-and-improved-jquery-idle-timeout-plugin/

    I have used this approach in the past with Admin pages within websites to a fair amount of success, especially after adding the modal dialog box informing users that the session was about to expire. This helps the user to feel like the web application/site is working with them to help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

These ribbon in stackoverflow and uservoice.com looks nice. is there any javascript library/jquery plugin
Is there any JavaScript method similar to the jQuery delay() or wait() (to delay
There are a number of great Javascript libraries\frameworks out there (jQuery, Prototype, MooTools, etc.),
Is there a javascript function I can use to detect whether a specific silverlight
Is there a JavaScript equivalent of Java 's class.getName() ?
There is a JavaScript parser at least in C and Java (Mozilla), in JavaScript
Are there any good JavaScript frameworks out there which primary audience is not web
There are two popular closure styles in javascript. The first I call anonymous constructor
Is there any way in JavaScript to create a "weak reference" to another object?
Is there a built in Javascript function to turn the text string of a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.