Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The solution is to track mouse-movement/page-scrolling to check whether the user is interacting with the site.

Also, is it possible for javascript to check whether the site's tab and browser window is viewable and in the foreground?



You can listen for the window blurring




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: