Hey Mates! Maybe someone could help me. I cannot reach my coder and I need to start a campaign in some hours. I googled it already but havent found any good tutorials because I am not sure which terms to google. I am sure you know what I am looking for. When you are leaving a selling page sometimes there is a windows browser window opening telling you to click on CANCEL to get bonus, discount or whatever and if you click on CANCEL it redirects you to another selling page. How can I create something like that? Any good tutorials on the net? Thanks so much!
I would love to know this answer of this as well. I'm a newbie so please be very detailed about instructions. Thanks in advance!!
Put this in the page you want the exit popup. <code><!-- var PreventExitPop = false; function ExitPop() { if(PreventExitPop == false) { PreventExitPop=true; document.getElementById("MainBody").style.display='none'; document.getElementById("ExitDive").style.display='block'; scroll(0, 0); return "*****************************************************\n\nWAIT -- Before You Go - See Our Special FREE TRIAL Offer\n\n -- Click CANCEL button Now!\n\n*****************************************************" } } // --> </script> <SCRIPT LANGUAGE = "JavaScript"> <!-- window.onbeforeunload = ExitPop; // --> </SCRIPT> </code>
Use this here: Code: <script type="text/javascript"> var ShowExitPopup = true; function ExitPage() { if (ShowExitPopup) { ShowExitPopup = false; location.href = "http://www.YOURURL.com/destination"; return '****************************************\n\YOUR HEADLINE\n\n YOUR TEXT1 \n\n YOUR TEXT "\n\n | |\n | |\n V V\n v\n ********************************************************\n'; } } </script> and add this here to your body Code: <body onbeforeunload="return ExitPage();"> Have fun!