Simple Exit pop up script code

23 replies
hey guys,

can anyone supply me with the simple exit pop up script I see all the time (the one that's just gray with words only, like on this site):


Get Your Ex Girlfriend Back | Text Your Ex Back



I don't need anything fancy, and I'm assuming this is just some free javascript code. does anyone have it?

Thanks!
#code #exit #pop #script #simple
  • Profile picture of the author Nathan Bumstead
    I got this one from a WSO. It's cheap and easy to configure.

    http://www.warriorforum.com/warrior-...ng-rights.html

    Hope that helps!
    Signature

    -> My YouTube Channel <- "Find out why everyone is talking about it..."

    {{ DiscussionBoard.errors[7839739].message }}
    • Profile picture of the author MarketingVet09
      hey, thanks for your suggestion..

      However, that's a 3 year old thread, not sure if it's up to date.


      I've seen exit splash, which looks to have a lot of fancy stuff and costs $67... but there has to be an alternative, if not free, a lot cheaper, for what I need...


      Which is just the simple javascript popup that I see 99% of the time
      {{ DiscussionBoard.errors[7839788].message }}
      • Profile picture of the author MartinPlatt
        Exit splash is awesome, very quick and easy to get going.

        There was one that I saw, I think it was called exit rescue. That was okay, but nowhere near as good as exit splash - much less options. It's really about whether you want free and then spend you time messing with it, versus paying for something, couple of clicks and you're done.

        The next version, that you will be able to get a wordpress plugin for is even better.
        Signature

        Martin Platt
        martin-platt.com

        Stuck with earning commissions online? Get this get this uncensored affiliate marketing guide for free (sold as coaching for $4,997)

        {{ DiscussionBoard.errors[7839829].message }}
  • Profile picture of the author Nathan Bumstead
    Are you looking for just an HTML Exit Pop (not WP right?)

    The one I got was $25 (much cheaper than any others that I found). I didn't need anything fancy.

    I've tested it on IE, Firefox, and Safari. No issues. Always works.

    I was curious about a feature and I emailed the support. They responded the same day.

    It's literally a tiny app. You just copy/paste your page code and it spits out your results.

    Check out the popup from the link in my sig if you want the live demo. The sales page is not IM related so you won't have to worry about getting sucked in.

    I haven't compared other Exit pops, but I'm sure other Warriors have posted good alternatives.
    Signature

    -> My YouTube Channel <- "Find out why everyone is talking about it..."

    {{ DiscussionBoard.errors[7839881].message }}
    • Profile picture of the author Pedro Ferreira
      Use this piece of javascript at the end of your html document right before the </body> tag.

      Code:
      <script language="javascript">
      (function() {
          setTimeout(function() {
          var __redirect_to = 'http://yoururlhere.com/';//
      
          var _tags = ['button', 'input', 'a'], _els, _i, _i2;
          for(_i in _tags) {
              _els = document.getElementsByTagName(_tags[_i]);
              for(_i2 in _els) {
                  if((_tags[_i] == 'input' && _els[_i2].type != 'button' && _els[_i2].type != 'submit' && _els[_i2].type != 'image') || _els[_i2].target == '_blank') continue;
                  _els[_i2].onclick = function() {window.onbeforeunload = function(){};}
              }
         }
      
          window.onbeforeunload = function() {
              setTimeout(function() {
                  window.onbeforeunload = function() {};
                  setTimeout(function() {
                      document.location.href = __redirect_to;
                  }, 500);
              },5);
              return 'WAIT BEFORE YOU GO! CLICK THE *CANCEL* BUTTON RIGHT NOW! PAGE. I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.';
          }
          }, 500);
      })();
      </script>
      Replace the stuff that is in bold with your redirect url and the message that you'd like to appear in the popup.

      Taken from this thread:
      http://www.warriorforum.com/programm...ml#post5999679
      Signature

      {{ DiscussionBoard.errors[7839935].message }}
      • Profile picture of the author Daniel Elss
        this one sets off my symantec endpoint network threat protection with "facebook fake alert", false positive I'm sure but dont want that eh?
        {{ DiscussionBoard.errors[8277174].message }}
      • Profile picture of the author anwar001
        Did you try this to confirm its working?

        Originally Posted by Pedro Ferreira View Post

        Use this piece of javascript at the end of your html document right before the </body> tag.

        Code:
        <script language="javascript">
        (function() {
            setTimeout(function() {
            var __redirect_to = 'http://yoururlhere.com/';//
        
            var _tags = ['button', 'input', 'a'], _els, _i, _i2;
            for(_i in _tags) {
                _els = document.getElementsByTagName(_tags[_i]);
                for(_i2 in _els) {
                    if((_tags[_i] == 'input' && _els[_i2].type != 'button' && _els[_i2].type != 'submit' && _els[_i2].type != 'image') || _els[_i2].target == '_blank') continue;
                    _els[_i2].onclick = function() {window.onbeforeunload = function(){};}
                }
           }
        
            window.onbeforeunload = function() {
                setTimeout(function() {
                    window.onbeforeunload = function() {};
                    setTimeout(function() {
                        document.location.href = __redirect_to;
                    }, 500);
                },5);
                return 'WAIT BEFORE YOU GO! CLICK THE *CANCEL* BUTTON RIGHT NOW! PAGE. I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.';
            }
            }, 500);
        })();
        </script>
        Replace the stuff that is in bold with your redirect url and the message that you'd like to appear in the popup.

        Taken from this thread:
        http://www.warriorforum.com/programm...ml#post5999679
        Signature
        Get Hundreds of Super Targeted Traffic in Any Niche from Facebook - 3 Step Organic FB Marketing

        25 Guidelines For Massive Affiliate Success - Whether you are a beginner or an expert, read these principles and refer back to them many times
        {{ DiscussionBoard.errors[8501328].message }}
      • Profile picture of the author peternewport
        I used this script on Weebly and it works like a charm! Thanks for sharing.
        {{ DiscussionBoard.errors[9056868].message }}
        • Profile picture of the author Egils
          I use this code. I definitely know that this script works in IE, Firefox and Chrome. Place this code at the end of your web page before the </body>.

          <script language="javascript">
          var exitsplashmessage = "***********************************************\n W A I T ! ! !\nDon't Leave Empty Handed!\nGrab Your Complementary FREE Crash Course NOW!!\n******************************************* ****";
          var exitsplashpage = 'http://yoursite.com';
          function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }
          function addClickEvent(a,i,func) { if (typeof a[i].onclick != 'function') { a[i].onclick = func; } }
          var theDiv = '<div id="ExitSplashDiv" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';
          theDiv = theDiv + '<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';
          theDiv = theDiv + '</div>';
          theBody = document.body; if (!theBody) {theBody = document.getElementById("body"); if (!theBody) {theBody = document.getElementsByTagName("body")[0]; } }
          var PreventExitSplash = false;
          function DisplayExitSplash(){ if(PreventExitSplash == false){ window.scrollTo(0,0); PreventExitSplash=true; divtag = document.createElement("div"); divtag.setAttribute("id","ExitSplashMainOuterLayer "); divtag.style.position="absolute"; divtag.style.width="100%"; divtag.style.height="100%"; divtag.style.zIndex="99"; divtag.style.left="0px"; divtag.style.top="0px"; divtag.innerHTML=theDiv; theBody.innerHTML=""; theBody.topMargin="0px"; theBody.rightMargin="0px"; theBody.bottomMargin="0px"; theBody.leftMargin="0px"; theBody.style.overflow="hidden"; theBody.appendChild(divtag); return exitsplashmessage; } }
          var a = document.getElementsByTagName('A'); for (var i = 0; i < a.length; i++) { if(a[i].target !== '_blank') {addClickEvent(a,i, function(){ PreventExitSplash=true; });} else{addClickEvent(a,i, function(){ PreventExitSplash=false;}); } }disablelinksfunc = function(){var a = document.getElementsByTagName('A'); for (var i = 0; i < a.length; i++) { if(a[i].target !== '_blank') {addClickEvent(a,i, function(){ PreventExitSplash=true; });} else{addClickEvent(a,i, function(){ PreventExitSplash=false;}); }
          addLoadEvent(disablelinksfunc);
          disableformsfunc = function(){ var f = document.getElementsByTagName('FORM'); for (var i=0;i<f.length;i++){ if (!f[i].onclick){ f[i].onclick=function(){ PreventExitSplash=true; } }else if (!f[i].onsubmit){ f[i].onsubmit=function(){ PreventExitSplash=true; } } } }
          addLoadEvent(disableformsfunc);
          window.onbeforeunload = DisplayExitSplash;
          </script>
          {{ DiscussionBoard.errors[9070975].message }}
          • Profile picture of the author leo1in88
            Originally Posted by Egils View Post

            I use this code. I definitely know that this script works in IE, Firefox and Chrome. Place this code at the end of your web page before the </body>.

            <script language="javascript">
            var exitsplashmessage = "********************************************* **nW A I T ! ! !nDon't Leave Empty Handed!nGrab Your Complementary FREE Crash Course NOW!!n******************************************** ***";
            var exitsplashpage = 'http://yoursite.com';
            function addLoadEvent(func) { var oldonload = window.onload; if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }
            function addClickEvent(a,i,func) { if (typeof a[i].onclick != 'function') { a[i].onclick = func; } }
            var theDiv = '<div id="ExitSplashDiv" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';
            theDiv = theDiv + '<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';
            theDiv = theDiv + '</div>';
            theBody = document.body; if (!theBody) {theBody = document.getElementById("body"); if (!theBody) {theBody = document.getElementsByTagName("body")[0]; } }
            var PreventExitSplash = false;
            function DisplayExitSplash(){ if(PreventExitSplash == false){ window.scrollTo(0,0); PreventExitSplash=true; divtag = document.createElement("div"); divtag.setAttribute("id","ExitSplashMainOuterLayer "); divtag.style.position="absolute"; divtag.style.width="100%"; divtag.style.height="100%"; divtag.style.zIndex="99"; divtag.style.left="0px"; divtag.style.top="0px"; divtag.innerHTML=theDiv; theBody.innerHTML=""; theBody.topMargin="0px"; theBody.rightMargin="0px"; theBody.bottomMargin="0px"; theBody.leftMargin="0px"; theBody.style.overflow="hidden"; theBody.appendChild(divtag); return exitsplashmessage; } }
            var a = document.getElementsByTagName('A'); for (var i = 0; i < a.length; i++) { if(a[i].target !== '_blank') {addClickEvent(a,i, function(){ PreventExitSplash=true; });} else{addClickEvent(a,i, function(){ PreventExitSplash=false;}); } }disablelinksfunc = function(){var a = document.getElementsByTagName('A'); for (var i = 0; i < a.length; i++) { if(a[i].target !== '_blank') {addClickEvent(a,i, function(){ PreventExitSplash=true; });} else{addClickEvent(a,i, function(){ PreventExitSplash=false;}); }
            addLoadEvent(disablelinksfunc);
            disableformsfunc = function(){ var f = document.getElementsByTagName('FORM'); for (var i=0;i<f.length;i++){ if (!f[i].onclick){ f[i].onclick=function(){ PreventExitSplash=true; } }else if (!f[i].onsubmit){ f[i].onsubmit=function(){ PreventExitSplash=true; } } } }
            addLoadEvent(disableformsfunc);
            window.onbeforeunload = DisplayExitSplash;
            </script>
            Hi thank you for this script , i took a whole day to find that one works.
            But How can i put it in 1 specific sub page, or post but not a whole site?
            {{ DiscussionBoard.errors[9235314].message }}
      • Profile picture of the author leo1in88
        Originally Posted by Pedro Ferreira View Post

        Use this piece of javascript at the end of your html document right before the </body> tag.

        Code:
        <script language="javascript">
        (function() {
            setTimeout(function() {
            var __redirect_to = 'http://yoururlhere.com/';//
        
            var _tags = ['button', 'input', 'a'], _els, _i, _i2;
            for(_i in _tags) {
                _els = document.getElementsByTagName(_tags[_i]);
                for(_i2 in _els) {
                    if((_tags[_i] == 'input' && _els[_i2].type != 'button' && _els[_i2].type != 'submit' && _els[_i2].type != 'image') || _els[_i2].target == '_blank') continue;
                    _els[_i2].onclick = function() {window.onbeforeunload = function(){};}
                }
           }
        
            window.onbeforeunload = function() {
                setTimeout(function() {
                    window.onbeforeunload = function() {};
                    setTimeout(function() {
                        document.location.href = __redirect_to;
                    }, 500);
                },5);
                return 'WAIT BEFORE YOU GO! CLICK THE *CANCEL* BUTTON RIGHT NOW! PAGE. I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.';
            }
            }, 500);
        })();
        </script>
        Replace the stuff that is in bold with your redirect url and the message that you'd like to appear in the popup.

        Taken from this thread:
        http://www.warriorforum.com/programm...ml#post5999679
        Thank you for this script, but how can i put it in specific sub page or post but not a whole site?
        {{ DiscussionBoard.errors[9235324].message }}
      • Profile picture of the author jrobin747
        Even after I click the stay button I am taken to the url I put i the line below
        var __redirect_to = 'http://yoururlhere.com/';//
        {{ DiscussionBoard.errors[9240932].message }}
    • Profile picture of the author MarketingVet09
      Originally Posted by Nathan Bumstead View Post

      Are you looking for just an HTML Exit Pop (not WP right?)

      The one I got was $25 (much cheaper than any others that I found). I didn't need anything fancy.

      I've tested it on IE, Firefox, and Safari. No issues. Always works.

      I was curious about a feature and I emailed the support. They responded the same day.

      It's literally a tiny app. You just copy/paste your page code and it spits out your results.

      Check out the popup from the link in my sig if you want the live demo. The sales page is not IM related so you won't have to worry about getting sucked in.

      I haven't compared other Exit pops, but I'm sure other Warriors have posted good alternatives.


      Hey, just so you know...

      the script on your page plays the "stay on this page" audio, without me ever hitting exit on the browser (using google chrome).


      It works differently in internet explorer...


      This type of thing was my concern, the possibility of the code being out of date and malfunctioning.


      Thanks for the help though I'll keep evaluating my options
      {{ DiscussionBoard.errors[7839977].message }}
  • Profile picture of the author TheSalesBooster
    A simple google search would of given you the javascript code for it...
    {{ DiscussionBoard.errors[7839946].message }}
  • Profile picture of the author Jackson Tan
    Great.. just a side question, is having 2 exit splash way too many?? what are your thoughts?

    To Your Fun & Freedom
    Jackson Tan
    {{ DiscussionBoard.errors[7841094].message }}
    • Profile picture of the author doc4978
      Does anyone have any stats/articles of how effective exit splashes are?

      I normally ignore them personally but have ended up buying a product based on one I saw...so I may give them try
      {{ DiscussionBoard.errors[7841139].message }}
    • Profile picture of the author Pedro Ferreira
      Originally Posted by Jackson Tan View Post

      Great.. just a side question, is having 2 exit splash way too many?? what are your thoughts?

      To Your Fun & Freedom
      Jackson Tan
      Yes, way too many... I usually ignore them all. So two would really get me annoyed.

      "I want to get off your page, will you please just let me go...?"
      Signature

      {{ DiscussionBoard.errors[7841171].message }}
    • Profile picture of the author Nathan Bumstead
      Originally Posted by Jackson Tan View Post

      Great.. just a side question, is having 2 exit splash way too many?? what are your thoughts?
      I think it depends on how much you are offering. Most end users do not like them. But from the vendor side I think 2 can be effective if you are offering enough value.

      Example: I recently saw one where the person was selling something for $47. Exit Pop 1 - Discounted $5 trial. Exit Pop 2 - Free Report.

      But his exit pops really were designed in a way that made me at least pay attention to what he had to say on both of the exit pops. And as marketers I think that is what we are trying to accomplish aey?
      Signature

      -> My YouTube Channel <- "Find out why everyone is talking about it..."

      {{ DiscussionBoard.errors[7841916].message }}
  • Profile picture of the author Mary Stevens
    Here we go give this a shot.

    Let me google that for you
    Signature
    {{ DiscussionBoard.errors[8277207].message }}
  • Profile picture of the author papuanac1971
    Originally Posted by MarketingVet09 View Post

    hey guys,

    can anyone supply me with the simple exit pop up script I see all the time (the one that's just gray with words only, like on this site):


    Get Your Ex Girlfriend Back | Text Your Ex Back



    I don't need anything fancy, and I'm assuming this is just some free javascript code. does anyone have it?

    Thanks!
    I use David Guinon exit splash and works perfectly. It has also suggestion box, twitter viral box but also a price of $65 I think. I buy it few months ago and easy to integrate with wp blog.
    {{ DiscussionBoard.errors[8501385].message }}
    • Profile picture of the author rob587
      I just created a really good exit pop up.

      Checkout the live demo at TunaHack.com

      - Rob
      rob(at)tunahack.com
      {{ DiscussionBoard.errors[8542833].message }}
  • Profile picture of the author bestIMtools
    Is it for Wordpress or HTML? Here's a suggestion: https://wordpress.org/plugins/sumome/
    Signature

    Invento Marketing | Dominican Republic Boutique Ad & PR Agency
    http://instagram.com/inventomarketing

    {{ DiscussionBoard.errors[9235337].message }}
  • Profile picture of the author talfighel
    I have been using a software for 2 years now, which you pay once and can use forever.

    You can get this software at:

    exitsplash.com
    {{ DiscussionBoard.errors[9235341].message }}

Trending Topics