Home >
Technical & Creative Skills >
Programming, Servers & Scripts
Exit Pops on Questions Lander (3)
02-16-2015 04:38 PM
#1
hangman (Member)
Exit Pops on Questions Lander
I ripped and edited this lander but the exit pop loads each time the user answers a question. Any ideas on how to fix this??
Thanks
>> http://lovematch.pw/asian-date-ldr-563
02-16-2015 05:50 PM
#2
willjr (Member)
Just a quick look at your landers code. The easiest thing to do if you don't know javascript and you just want to get the page up and running just delete the exit pop code.
<script language="javascript">var PreventExitPop = true;function ExitPop() {if(PreventExitPop != false) {return "WAIT! \n\nWe are the most exclusive dating website for men like you and have limited sign-ups for men in your area. \n\nJoin NOW via this special offer while spots are still avaliable! Don't leave love up to chance! \n\n"}}window.onbeforeunload = ExitPop;</script>
or if you know a little bit of javascript all you need to do is set the variable PreventExitPop to true on each button click
<a href="http://lovematch.pw/asian-date-ldr-563#" class="yes" onclick="PreventExitPop= true">Yes</a>
This solution would only work for your page since this javascript snippet is right off your lander only. I personally would delete it that exit pop code isn't very good... It should trigger when the page unloads. I would delete it and find another exit pop script.
02-16-2015 07:58 PM
#3
craigm (Veteran Member)
that code gives the web dev purist within me a headache
Home >
Technical & Creative Skills >
Programming, Servers & Scripts