Need Help: Exit popup javascript

8 replies
Is there any codes for the "Leave this page button to link it on other page". I mean once you click Leave this page it will go through to another site.

this is the code I have used for my exitpopup.

<script type='text/javascript'>
<!--
var NoExitPage = false;
function ExitPage() {
if(NoExitPage == false) {
NoExitPage=true;
location.href='http://sample.com/';
return"******************************************* ****\n\n"+
" WAIT BEFORE YOU GO!!\n\n"+
" We have a FREE GIFT for you!\n\n"+
"Click Stay on this page to get your Free Gift</a>!\n\n"+
"********************************************* **";
}
}
// -->
</script>
#exit #javascript #popup
  • Profile picture of the author ashleysmith12
    Hi,

    Such a Nice and informative post I found!!


    Thanks for sharing this!!
    {{ DiscussionBoard.errors[3891929].message }}
    • Profile picture of the author leahpot
      Originally Posted by ashleysmith12 View Post

      Hi,

      Such a Nice and informative post I found!!


      Thanks for sharing this!!

      Thanks, but I need help with this.. do you know how to do it?
      {{ DiscussionBoard.errors[3892137].message }}
      • Profile picture of the author TG12
        I would have said these days Exit Popups don't work under most modern browsers.
        Signature
        Vaoser Link Ninja Software
        DHV Delivery Systems FAILING at online dating???
        {{ DiscussionBoard.errors[3893797].message }}
        • Profile picture of the author aviatorjohn
          change sample.com to your own domain?
          Or what do you mean exactly?
          be more specific then i can help you maybe
          {{ DiscussionBoard.errors[3893900].message }}
          • Profile picture of the author leahpot
            Originally Posted by aviatorjohn View Post

            change sample.com to your own domain?
            Or what do you mean exactly?
            be more specific then i can help you maybe
            All I need is, when I click the "LEAVE THIS PAGE" it should be link to other site.. and then the window should not be close but it would go through to the other site..
            {{ DiscussionBoard.errors[3897274].message }}
  • Profile picture of the author art72
    I've seen this, but usually it just references a "discount" or "bonus" offer to the page the visitor was actually exiting.

    Not sure if that's what your trying to accomplish, but to have them go somewhere completely different might not be very practical. If I was looking into your salespage selling "traffic solutions" and decided to wait on purchasing...then teleported to something completely different or even another product, I would feel it to be pressuring the sale, rather than letting the visitor make the choice.

    A discount...oto, yes. Another site..NO.
    Signature
    Atop a tree with Buddha ain't a bad place to take rest!
    {{ DiscussionBoard.errors[3897904].message }}
    • Profile picture of the author leahpot
      Originally Posted by art72 View Post

      I've seen this, but usually it just references a "discount" or "bonus" offer to the page the visitor was actually exiting.

      Not sure if that's what your trying to accomplish, but to have them go somewhere completely different might not be very practical. If I was looking into your salespage selling "traffic solutions" and decided to wait on purchasing...then teleported to something completely different or even another product, I would feel it to be pressuring the sale, rather than letting the visitor make the choice.

      A discount...oto, yes. Another site..NO.
      What i'm really trying to accomplish is that, once the visitor tried to close/leave the page, an exit pop up will show up. I have no problems doing this, coming up with a exit pop up script, but my problem is that once the exit pop up show up, the visitor will be presented with two options. "STAY"(a free offer will be given to the visitor directing them to a free offer page) and "LEAVE THE PAGE" - INSTEAD OF THEM ACTUALLY LEAVING THE PAGE, WHAT I'M TRYING TO ACCOMPLISH IS TO HAVE THEM DIRECTED TO ANOTHER OFFER, LET SAY A CLICKBANK OFFER.

      Again, I have the exit pop up script directing the visitor to a free offer when they choose the option " STAY" BUT MY MAIN PROBLEM is that, when they click on "LEAVE THE PAGE" I NEED THEM TO DIRECT TO ANOTHER OFFER/PAGE. What do I need to do? Do you have a script perhaps, or anything to accomplish this.

      Please assist.

      Thanks.
      {{ DiscussionBoard.errors[3904764].message }}
      • Profile picture of the author lovingperson
        if i place that code into my home page will it effect my adsense??
        {{ DiscussionBoard.errors[3904965].message }}

Trending Topics