title: how to reload parent window on closing child window
body: <pre><code>function print() {
  var popup;
  
              popup = window.open(URL2, "Popup", ",scrollbars=yes,statusbar=no,menubar=no,resizable=yes");//URL2 contains the path and pdf name
              popup.focus();
              popup.print();
              window.opener.location.reload();
  }
  </code></pre>
  
  <p>in the above JAVASCRIPT function i am opening a popup window to show PDF and working fine till here but i also want a dialogue box to be prompted immediately after the popup window opens that is not working and i want to reload the parent window that is also not working using above function.</p>
  
  <p>1- my problems  is when i am closing the popup i just want my parent window to reload but in the existing answers i did not find the solutions that would work
  2- I want print dialogue functionality </p>