Home > General > Affiliate Marketing Forum

Exit pop-up will pop even when the user clicks my link, how do I fix this? (4)


10-29-2013 04:06 PM #1 bravenewworld (Member)
Exit pop-up will pop even when the user clicks my link, how do I fix this?

Hey guys,

I've been searching the forums and I've found multiple exit pop-ups...but for some reason they will even pop-up when users click the link button to go to the offer. How can I fix it so the only time the pop-up exit script will happen is when the user attempts to preemptively exit?


10-29-2013 04:53 PM #2 blackkramer (Member)

you are missing the code on your links to tell it not to pop. Something like this:

onclick="stopexitpop = false"

rename the stopexitpop to whatever you are calling it in your popup coding. If you are using different code you need to figure out whatever it is and tell it to not happen when people click out by your CTA


10-29-2013 05:40 PM #3 bravenewworld (Member)

Here's my code...

<SCRIPT language="javascript">
var PreventExitPop = true;
function ExitPop() {
if(PreventExitPop != false) {
return "Woah cowboy!\n\nDo you realize what you're about to miss out on?\n\nWe periodically close registration for men. This is to have approximately an equal number of male and female members. Registration for men is currently open, and free, so we advise you to sign up now - before we close registration. \n\nYou have just been offered a chance to join the only adult dating site where there are actually more females than there are males. \n\nBe quick. \n\n---"
}
}
window.onbeforeunload = ExitPop;
</SCRIPT>


10-31-2013 03:17 PM #4 caurmen (Administrator)

To stop your exit pop exit poppin', your link should read

<a href="YOURLINK" onclick="PreventExitPop = false;">

That should do it!


Home > General > Affiliate Marketing Forum