Results 1 to 6 of 6

Thread: Exit popup code. Anyone?

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614

    Exit popup code. Anyone?

    I need a exit popup code that will stop the visitor from exiting the website and will offer them a free report or some other freebie..anyone has any such free code??

    I looked up on net but most of them are either not free or buggy, as in they will show the exit popup even when a visitor clicks on an internal link..

    Thx

  2. isn't that annoying for your visitors?

  3. #3
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    well, they are already leaving by hitting the close button, why not offer them something to stay back for few seconds

  4. #4
    If you use the "Web Developer" plugin for FireFox you can view the Javascript code (under Information->View JavaScript) used on a site that you like and copy and paste the code if licensing permits.

  5. #5
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    ya I got one by looking at source code of such a site...but its not free...

  6. #6
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    Finally I got one free exit pop code.. if anyone wants it then here it is:

    The below code should be between the <head> and </head>
    Code:
    <script type='text/javascript'> 
    <!--
    var NoExitPage = false;
    function ExitPage() {
        if(NoExitPage == false)    {
            NoExitPage=true;
            location.href='http://yourlandingpage.com/';
            return"***********************************************\n\n"+
                   "          WAIT BEFORE YOU GO!!\n\n"+
                   "      Exclusive Discount Offer ($20 Value) Today Only!\n\n"+
                   "Click the [Cancel] Button Right Now To Stay On This Page!\n\n"+
                   "***********************************************";
        }
    }
    // -->
    </script>
    also modify the <body> tag to the following:
    Code:
    <body onBeforeUnload="return ExitPage();">

Similar Threads

  1. [WTS] The Ultimate Exit Pop Solution For WordPress Users
    By iowadawg in forum Marketplace
    Replies: 0
    Last Post: 24 February, 2011, 21:56 PM
  2. WP code change help Please.
    By Sami4u in forum Wordpress
    Replies: 13
    Last Post: 3 April, 2010, 18:27 PM
  3. Help me with this code
    By weirdnessme in forum Web Proxies
    Replies: 1
    Last Post: 11 December, 2009, 03:48 AM
  4. JQuery Fade-in Popup with Cookies
    By Zash in forum Programming
    Replies: 0
    Last Post: 22 November, 2009, 02:06 AM
  5. Replies: 9
    Last Post: 27 May, 2009, 03:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •