Perform action after window closed
<p>I have a JS that opens a new tab. And I want to refresh the original window but only once the opened tab is closed. How would you do it?</p>

<p>Here's the code I have now (which obviously doesn't work - it does the refresh immediately after opening the new window):</p>

<pre><code>window.open( SOME_WINDOW );
window.location.reload();
</code></pre>
