Answer the question
In order to leave comments, you need to log in
How to determine in a minimized browser tab that the user is inactive?
I'm writing a small javascript script to track the time of work on projects. And the following question arose: is it possible to somehow determine that the user is inactive - he does not move the mouse, did not press the keys, the screen saver turned on, etc.?
I understand how to do this in the active browser window. But is it possible to somehow determine this when the window is minimized?
Perhaps browser extensions have access to some kind of API? Or some module for Node.js? In general, any options, if they exist, will do.
Answer the question
In order to leave comments, you need to log in
No. You can only determine that the user has closed / minimized the tab.
This is done with the focus/blur event hung on the document
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question