I want to detect if a user is away from computer (i.e not doing any mouse movement or typing anything).
I want to do that with JavaScript.
Is this even possible?
On my page I want to fire a piece of code of JavaScript if the user is away.
I know there are blur, focus events but they are dependent on tab visibility. I don't want that dependency. Irrespective of the tab is opened or closes I want to detect mouse movement/keyboard inactivity on my page.