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:
C#
script >
window.onbeforeunload =
function ()
{
window.open('NewPage.aspx');
};
script >but unfortunately, it closes both the new page and the old page. Can you please help.
Thanks in advance

Nishant MittalRank #692 · 3.5K reputationPosted Dec 16, 2015, 10:50 PM EST
Createive3 reputationPosted Dec 17, 2015, 1:50 AM EST
Hi
unfortunately it does not work. Again it closes every thing both the new and old page.
Nishant MittalRank #692 · 3.5K reputationPosted Dec 17, 2015, 3:12 AM EST