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:
<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 MittalPosted Dec 17, 2015, 8:12 AM
CreateivePosted Dec 17, 2015, 6:50 AM
Hi
unfortunately it does not work. Again it closes every thing both the new and old page.
Nishant MittalPosted Dec 17, 2015, 3:50 AM