title: Refresh an open window that was opened with window.open when the url hash changes
body: <p>I open a small popup reference window using <code>window.open(...)</code> and give it a name. It is properly reused when subsequent <code>window.open</code>s are called for that window. </p>
  
  <pre><code>function openHelp(hash) {
      var helpWindow = window.open(location.protocol + "/help.aspx" + (hash ? "#" + hash : ""), "helpWindow", "width=750, height=600, resizable=1, scrollbars=1, location=0, directories=0, status=no, menubar=no, toolbar=no");
  }
  </code></pre>
  
  <p>The one case where it doesn't work properly is when someone has the window open at the help page url and only the hash changes (i.e. <code>#jump-to-me</code>). Only on a page reload does the page properly go to the hash. </p>
  
  <p>Is there a way to find the open window, check that the URL matches what we're trying to open and conditionally do a <code>window.location.refresh()</code> when the hash changes?</p>