SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2008
    Posts
    167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    System Idle Timeout

    I have searched around and I've not been able to find anything with this, it may not be possible.

    Is there some way for javascript to detect an overall system idle time?

    I have seen examples and working copies of javascript detecting no mouse movements as long as the mouse cursor stays within the scope of the open browser window. What I am wanting is to detect mouse movements outside of the browser window, when the browser is minimized, etc. and have that not count against idleness.

    Basically I am wanting to be able to leave the browser window minimized and if the mouse is not moved within a certain period of time, that browser window is logged out of its current application.

    For the purpose of this, I am content to use mouse movement as the sole arbiter of idleness.

    Is something like this possible with javascript?

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    It is not possible for javascript inside of a web browser to gain access to system-level information.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •