Exit page redirect
Monday, June 26th, 2006I am wanting to create an automatic redirect exit page to another of my websites when my visitors leave my main website.… from the Warrior Forum
Well, when soneone leaves your web-page the onUnload event would be triggered. If you add a code to open a popup into the <body> tag, the popup would be shown every time they leave your page.
<body onUnload="window.open('http://MySite.com/popup.html')">
This is a useless solution. The popup would be shown even they click a link to another page inside your site. We need to block the popup when they click a link or submit a form at your page.