Javascript – Detect Inactivity in Browser Tab
You can detect when a user stops interacting with the page using pure Javascript. Example below is a scrupt that will reload the page when user becomes inactive for 5 seconds. It will still run even though you are in another tab. 123456789101112131415 <script> onInactive(5, function () { window.location.reload(); }); function onInactive(seconds, cb) […]

