Forum Moderators: open
i need to know when my window will be inactive... sample is browser window 1 and browser window 2, first window1 is active, and as i transfer to window 2 which the window2 will be active and the window1 is inactive, how do i detect that on java that window1 is inactive?
any answer will apprecieted... thanks you in advance...
*edit*
I would recommend using window.onblur in conjunction with a JavaScript timeout function. You'll have to determine how long is too long to loose the user's attention (IE they have left the computer or window while visiting a bank site and you wish to log them out if they fail to acknowledge that they are still present).
- John
[edited by: JAB_Creations at 3:21 am (utc) on Sep. 24, 2007]