title: Refresh Parent page on close of pop up window
body: <p>I have a Parent page in which, I have added a search functionality. </p>
  
  <p>like below</p>
  
  <pre><code>function FunClick(StrPriCaption) {
          var StrPriHTML = "";
          if (StrPriCaption == 'AdvSearch') {
              //document.getElementById('TxtCondition').value = "AdvSearch";
              //form1.submit();
              var StrPriReturnValue = "";
              window.open('FrmInwardHdrAdvanceSearch.aspx', null, 'height=370,width=630,top=0,left=0,resizable=yes,scrollbars=yes');
  
          }
   }
  </code></pre>
  
  <p>And it works perfectly. It opens a pop up window page for me to search for.</p>
  
  <p>But now what I want is, IF I close the pop up,I want to refresh the parent page. </p>
  
  <p>I tried with below code in Child page, but it didn't refreshed the parent page.</p>
  
  <pre><code> function CloseWindow() {
      window.close();
      window.opener.location.reload();
   }
  </code></pre>
  
  <p>How can I do this using Javascript?</p>