title: Refreshing Parent window after closing popup
body: <p>I am creating a popup window that goes to hello.html.  I want my original (parent page) to reload when i close the popup window (hello.html).  I can't seem to get it to work, but I'm close.  Here is the code I have so far for the main page and the hello.html page....</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  function open_win()
  {
  window.open("hello.html","_blank","toolbar=yes, location=yes, directories=no, status=no, menubar=yes, scrollbars=yes, resizable=no, copyhistory=yes, width=400, height=400");
  }
  &lt;/script&gt;
  
  
  &lt;script language="JavaScript"&gt;
  
  function refreshParent() {
    window.opener.location.href = window.opener.location.href;
  
    if (window.opener.hello.html)
  
   {
      window.opener.hello.html.close()
    }
    window.close();
  }
  &lt;/script&gt;
  
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;script type="text/javascript"&gt;
  
  var d=new Date();
  document.write(d);
  
  &lt;/script&gt;
  
  &lt;form&gt;
  &lt;input type="button" value="Open Window" onclick="open_win()"&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here is the hello.html...</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script type="text/javascript"&gt;
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  Hello
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>