I am wondering if there is a way to disable an automatic page refresh when a page loses focus. I have it setup to refresh when it gains focus again already using this:
window.onblur= function() {window.onfocus= function () {location.reload(true)}};
that I found from here. I originally had the page auto refresh by using:
<meta http-equiv="refresh" content="60"/>
Which reloads the page every 60 seconds regardless of state.
I want to make the page have the auto refresh only when in focus with the initial refresh coming when the page gains focus again. After the gain of focus it should refresh at the time interval until focus is lost.
Thanks