JavaScript Pop-Up Issue

I’m working on http://multiorgasmiclover.com/video-staging/. When a user leaves the page, I have a message displayed in a popup window. However, I don’t want the pop-up window to display when someone clicks “Click to Order Now”.

Below is my JavaScript:

Read More
var exit=true;
    function confirmExit()
            {
            if(exit)
            location.assign('');
            if(exit)   
            alert('**Are you sure you want to LOSE YOUR CHANCE to learn these powerful seduction secrets?nnOnce you leave the page your spot WILL be given to the next guy...nnThe ONLY way to learn these Top Secret Sexual Attraction Secrets is to STAY on this page...nn ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nCLICK THE *STAY ON THIS PAGE* BUTTON ON THE NEXT PAGEn ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nn');     
        return "ARE YOU SURE YOU WANT TO LEAVE???nnWithout these secret psychological tricks, your success with women may NEVER improve...nnSo if you want to STAY and learn all of these POWERFUL DARK SECRETS of attraction...nn ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nCLICK THE *STAY ON THIS PAGE* BUTTON BELOWn ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ n";

            }
            function falseExit(){
var exit=false;
}
if (exit=true){
window.onbeforeunload = function(){ 
return confirmExit();
}
}

Heres the WordPress Page Code:

<img class="aligncenter size-full wp-image-283" alt="Oh-My-God" src="http://multiorgasmiclover.com/wp-content/uploads/2012/12/Oh-My-God2.gif" width="810" height="105" />
<center>
<div class="evp-video-wrap" id="evp-865501268b67db9f71b5c2660cc36771-wrap"></div>
<script type="text/javascript" src="http://adtrack1122.com/evp/framework.php?div_id=evp-865501268b67db9f71b5c2660cc36771&amp;id=ZGVjMTh2My0xLm1wNA%3D%3D&amp;v=1356555658&amp;profile=default"></script><script type="text/javascript">// <![CDATA[
_evpInit('ZGVjMTh2My0xLm1wNA==[evp-865501268b67db9f71b5c2660cc36771]');
// ]]></script>
<script>
function falseExit(){
var exit=false;
}
</script>
<script type="text/javascript" src="http://multiorgasmiclover.com/popup.js"></script>

</center>
<center><a href="http://1.multiorg.pay.clickbank.net/?cbfid=9791"  ><img alt="" src="http://multiorgasmiclover.com/images/clicktoorderbutton.PNG" onclick="falseExit()"></a></center>
<noscript><iframe src="https://ssl.clickbank.net/pitch/serv/customfooter.htm?footerKey=L9QMXQFANN2D"
width=100% style= "padding:0px;margin-top:10px" frameborder="0" scrolling="no"></iframe></noscript><script type="text/javascript">// <![CDATA[
    footerPath='https://ssl.clickbank.net';
    footerKey='L9QMXQFANN2D';
// ]]></script>
<script charset="UTF-8" type="text/javascript" src="https://ssl.clickbank.net/script/custom_footer.js"></script><script type="text/javascript" src="http://multiorgasmiclover.com/popup.js"></script>

Related posts

Leave a Reply