title: Close child window on f5 refresh
body: <p>I have a piece of code that launches another page in an external window.</p>
  
  <pre><code>var myOpenWindow = window.open(...);
  </code></pre>
  
  <p>I manage this window throughout the applications life cycle and once the forum is completed my managing state closes this window.</p>
  
  <p>However, the issue I am facing is that if the user hits <code>f5</code> for a hard refresh the window is still open after the main page loads.</p>
  
  <p>At first I thought I could override the <code>window.open</code> to track the state of open windows from my app in a global variable. However, I overlooked the fact that on an <code>f5</code> reset my global is lost.</p>
  
  <p>This seems like a simple problem, but the solution has evaded me. Is there anyway to close a window opened by <code>window.open</code> when the parent is refreshed?</p>