Exit Pop Up on Landing Pages

1 replies
What is the script to make the pop up that appears on this page

ConsumerDigest - Green Coffee Bean Extract

is there a landing page creator that you can use that will auto add this feature?

thanks Warriors!
#exit #landing #pages #pop
  • Profile picture of the author Shane F
    Can use HTML yourself or we use Lead Pages now and it has a built in exit pop. Here's the HTML version you can edit and add.

    If using html you can enter this code below your footer and before the closing </body> tag.

    <!-- Start of Exit-Pop Code-->
    <script language="javascript">
    (function() {
    setTimeout(function() {
    var __redirect_to = 'HTTP://WWW.REDIRECTURL.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>
    <!-- End of Exit-Pop Code -->
    {{ DiscussionBoard.errors[10110973].message }}

Trending Topics