Exit Pop-Ups And Paypal Buttons - How To Make Them (Not) Work Together?

Discussion in 'HTML & Website Design' started by Fabian.JH, Jul 5, 2009.

  1. #1
    Hi,

    I'm including an exit pop-up on my page. Trouble is, I also have a Paypal order button on the page and when I click on it, the exit pop-up comes up as well.

    The exit pop-up is for offering a special deal, so naturally I don't want it to come up when customers click the Paypal order button.

    Is there a way to make the pop-up not work when someone clicks on the order button?

    I have tried the code onclick="exit=false" but it doesn't seem to work on these Paypal buttons.
     
    Fabian.JH, Jul 5, 2009 IP
  2. stevo123

    stevo123 Peon

    Messages:
    144
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try this,

    add this to you javascript

    var exitpop=ture;
    HTML:
    next add this to your exit pop-up function

    function exitpopup(){
       if (exitpop=true){
       //do your exit pop-up here
       }
    }
    HTML:

    and then add this to your paypal button "ONCLICK"
    onclick='exitpop=false;'
    HTML:
    hope it helps
     
    stevo123, Jul 5, 2009 IP