<script type="text/javascript" language="javascript">
var areYouReallySure = false;
var internalLink = false;
function areYouSure() {
if (!areYouReallySure && !internalLink) {
areYouReallySure = true;
location.href="http://www.oursite.com/"
return "*****************************************************\n\WAIT BEFORE YOU GO YOU MUST READ THIS!! \n\nDid you know that this is a LIMITED TIME offer that is discounted over 60%? This WILL NOT last long!\n\nTo claim your lmited time package, click STAY ON THIS PAGE and fill out the form.\n\nClick STAY ON THIS PAGE to get this LIMITED TIME offer!\n\n*****************************************************";
}
}
window.onbeforeunload = areYouSure;
</script>
With this (at our call to action button):
<form id="icpsignup4333" name="form1" action="https://app.icontact.com/icp/signup.php" method="post" accept-charset="UTF-8" internalLink="true"><input type="hidden" name="redirect" value="http://www.oursite.com/checkout.php" /> <input type="hidden" name="errorredirect" value="http://www.icontact.com/www/signup/error.html" />
Here's the problem:
It works in Google Chrome, but not Safari or Firefox - why not? By not working, i mean once that button is clicked (to checkout) the popup still comes up.
Is there a better code i should be using, if so, what?
Thanks in advance!


Sign In
Create Account

Back to top









