How to refresh page after focus?
<p>I would like to refresh a page after it got back into the focus. For the refreshing part I thought I might just use:</p>

<pre><code>location.reload();
</code></pre>

<p>The tricky part is how do I determine when to refresh?<br>
First the window has to loose the focus (which could be determined through <em>.blur()</em> I assume).<br>
Only after the window which lost focus gets back into focus should trigger the refresh of itself. Can I use <em>.focus()</em> on location? Or do I have to use something else here?</p>

<p>How can I combine these two cases?</p>

<p>What would your approach be?</p>
