Raw Exit Pop Code Please...

1 replies
  • WEB DESIGN
  • |
We were running Platinum pop plugin to generate our exit pops. But it is buggy and causing database errors.

I'm looking to just hard code the exit pops..

Does anyone have exit pop code that's easy to edit?
#code #exit #pop #raw
  • Profile picture of the author getsometraffic
    Insert this code before </body> or </html>
    You must to change the url http://YOUR SITE HERE/ into the your offer url.

    <script language="javascript">
    (function() {
    setTimeout(function() {
    var __redirect_to = 'http://YOUR SITE HERE/';//

    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>
    {{ DiscussionBoard.errors[8623142].message }}

Trending Topics