title: Refresh parent page from another URL
body: <p>I have two sites (both under my control). Site one opens a page on site 2 (See <a href="https://stackoverflow.com/questions/35175664/close-pop-up-from-code-behind">Close pop-up from code behind</a> if you wish to see the code)</p>
  
  <p>When i close the pop-up (on site 2) i would like to refresh the parent page (from site 1). I used the JS below</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
      window.onunload = refreshParent;
      function refreshParent() {
          var retVal = confirm("Are you sure ?");
          if (retVal == true) {
              window.opener.location.reload();
          }
          else {
              return false;
          } 
      }
      &lt;/script&gt;
  
  
  Button: OnClientClick="refreshParent()"
  </code></pre>
  
  <p>But this closes the window and not refresh the page. How could i refresh the parent page?</p>