Results 1 to 6 of 6

Thread: Exit popup code. Anyone?

  1. #1
    rome9t9's Avatar
    rome9t9 is offline No Longer Loves SEO
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    Blog Entries
    4
    Thanks
    168
    Thanked 105 Times in 77 Posts

    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. #2
    garfish's Avatar
    garfish is offline I'm Not Sure.
    Join Date
    May 2009
    Posts
    848
    Blog Entries
    12
    Thanks
    155
    Thanked 57 Times in 54 Posts
    isn't that annoying for your visitors?

  3. #3
    rome9t9's Avatar
    rome9t9 is offline No Longer Loves SEO
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    Blog Entries
    4
    Thanks
    168
    Thanked 105 Times in 77 Posts
    well, they are already leaving by hitting the close button, why not offer them something to stay back for few seconds

  4. #4
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,261
    Thanks
    173
    Thanked 304 Times in 231 Posts
    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
    rome9t9's Avatar
    rome9t9 is offline No Longer Loves SEO
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    Blog Entries
    4
    Thanks
    168
    Thanked 105 Times in 77 Posts
    ya I got one by looking at source code of such a site...but its not free...

  6. #6
    rome9t9's Avatar
    rome9t9 is offline No Longer Loves SEO
    Join Date
    Mar 2009
    Location
    If I tell you, I would have to kill you.
    Posts
    614
    Blog Entries
    4
    Thanks
    168
    Thanked 105 Times in 77 Posts
    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();">

  7. Thanked by:

    Aquarezz (3 September, 2010)

Similar Threads

  1. [WTS] The Ultimate Exit Pop Solution For WordPress Users
    By iowadawg in forum Marketplace
    Replies: 0
    Last Post: 24 February, 2011, 20: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, 02:48 AM
  4. JQuery Fade-in Popup with Cookies
    By Zash in forum Programming
    Replies: 0
    Last Post: 22 November, 2009, 01: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
  •