Exit Pop Up Script Pops Up When User Hits "Join Now" ...HELP!
I just got into building landing pages recently and I have been trying to get this exit pop up script to work properly for days. It works fine in Google Chrome, however when I go in Internet Explorer and hit the "Join Now" button on my landing page ... it still pops up.
Here is the code:
<script language="javascript">
var PreventExitPop = true;
function ExitPop() {
if(PreventExitPop != false) {
return "WAIT! \n\nSOMETEXT \n\n"
}
}
window.onbeforeunload = ExitPop;
</script>
What can I add to this code to make it only pop up when a user tries to click out?
Any help is APPRECIATED!
Thank you in advance....
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
---
Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu