title: Auto refresh parent window after closing popup
body: <p>I am having 2 pop up screens in my (Main) jsp. </p>
  
  <p>In the first pop-up the user will update the required information(Update) and after submitting the info, a new pop up will be shown that shows the modifications(View).</p>
  
  <p>I would like to refresh the Main page when the user clicks on the close "X" in the view page.</p>
  
  <p>I tried to use some scripts like the following in the view page, but it did not work:</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
  function refreshParent() {
    window.opener.location.href = window.opener.location.href;
  
     if (window.opener.progressWindow)
  
     {
      window.opener.progressWindow.close()
     }
     window.close();
    }
  &lt;/script&gt;
  </code></pre>