title: redirect to other page once click close the current page in asp.net
body: <p>I am new to JavaScript Programming. What I want to do is the following: 
  I am opening popup window for the user to print something. once he finishes, he will close the page. I want the portal to open another page once he closes this page. I tried the following: </p>
  
  <pre><code>&lt;body onbeforeunload="window.open('BondData.aspx');"&gt;
  </code></pre>
  
  <p>but it does not work. Can you please guide me to an idea where I can get this working? </p>
  
  <p>Thanks in advance</p>