Javascript Essentials Part 1

Open Browser Window on Browser Window Close – Open Window on Close Window

<body onUnload="window.open('http://www.google.ca/', 'newWindow', 'scrollbars=0,resizable=0,height=300,width=400')">

When viewer will close window (containing this code in body tag), he will get another window opened after closing first one which is given as url above.

Leave a Reply

Your email address will not be published. Required fields are marked *