1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to create "Please Do Not Leave Popup"?

Discussion in 'Black Hat SEO' started by blessingcpa, Oct 22, 2010.

  1. blessingcpa

    blessingcpa Registered Member

    Joined:
    Oct 22, 2010
    Messages:
    73
    Likes Received:
    6
    Hey Mates!

    Maybe someone could help me. I cannot reach my coder and I need to start a campaign in some hours. I googled it already but havent found any good tutorials because I am not sure which terms to google.

    I am sure you know what I am looking for. When you are leaving a selling page sometimes there is a windows browser window opening telling you to click on CANCEL to get bonus, discount or whatever and if you click on CANCEL it redirects you to another selling page.

    How can I create something like that? Any good tutorials on the net?

    Thanks so much!
     
  2. andrewstolpe

    andrewstolpe Newbie

    Joined:
    Apr 15, 2010
    Messages:
    15
    Likes Received:
    0
    I would love to know this answer of this as well. I'm a newbie so please be very detailed about instructions. Thanks in advance!!
     
  3. altschule

    altschule Regular Member

    Joined:
    Sep 1, 2010
    Messages:
    282
    Likes Received:
    185
    Location:
    Sector 9
    Code:
    <body onUnload="alerty('bye');">
     
  4. blessingcpa

    blessingcpa Registered Member

    Joined:
    Oct 22, 2010
    Messages:
    73
    Likes Received:
    6
    Thank you altschule... could you please be a little bit more detailed ? :)

    cheers

    btw: are you german?
     
  5. GeoffreyF67

    GeoffreyF67 Guest

    Put this in the page you want the exit popup.

    <code><!--
    var PreventExitPop = false;
    function ExitPop() {
    if(PreventExitPop == false) {
    PreventExitPop=true;
    document.getElementById("MainBody").style.display='none';
    document.getElementById("ExitDive").style.display='block';
    scroll(0, 0);
    return "*****************************************************\n\nWAIT -- Before You Go - See Our Special FREE TRIAL Offer\n\n -- Click CANCEL button Now!\n\n*****************************************************"
    }
    }
    // -->
    </script>
    <SCRIPT LANGUAGE = "JavaScript">
    <!--
    window.onbeforeunload = ExitPop;
    // -->
    </SCRIPT>
    </code>
     
    • Thanks Thanks x 1
  6. blessingcpa

    blessingcpa Registered Member

    Joined:
    Oct 22, 2010
    Messages:
    73
    Likes Received:
    6
    Thank you so much but where do I specify the second page that must be loaded after clicking cancel?
     
  7. renateh

    renateh Regular Member

    Joined:
    Nov 8, 2009
    Messages:
    262
    Likes Received:
    7
    Use this here:

    Code:
    <script type="text/javascript">
    var ShowExitPopup = true;
    function ExitPage()
    {
    if (ShowExitPopup) 
    { 
    ShowExitPopup = false;
    location.href = "http://www.YOURURL.com/destination";
    return '****************************************\n\YOUR HEADLINE\n\n YOUR TEXT1 \n\n  YOUR TEXT "\n\n                                                                                                     | |\n                                                                                                     | |\n                                                                                                    V V\n                                                                                                      v\n  ********************************************************\n';
    }
    } 
    </script>
    
    and add this here to your body
    Code:
    <body onbeforeunload="return ExitPage();">
    Have fun!
     
    • Thanks Thanks x 1
  8. lived66

    lived66 Regular Member

    Joined:
    Feb 12, 2010
    Messages:
    265
    Likes Received:
    440
    Will this work on wordpress? Where will I paste code?

     
  9. nativepro

    nativepro Power Member

    Joined:
    Jan 30, 2010
    Messages:
    536
    Likes Received:
    533
    • Thanks Thanks x 1