- Joined
- Nov 27, 2013
- Messages
- 21
- Points
- 1
I am searching for information about Exit Popup, do you know what it is and how does it work?
Thanks in advance
Rodney
Thanks in advance
Rodney
Paste this just before the </body> tag on your page.<script language="javascript">
(function() {
setTimeout(function() {
var __redirect_to = '[EXIT POPUP - REPLACE WITH LINK TO ANOTHER OFFER]';
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 '*** W A I T B E F O R E Y O U G O ! ***\n\n CLICK THE *Stay on this Page* BUTTON OR THE *CANCEL* BUTTON RIGHT NOW \n\nHAVE SOMETHING VERY SPECIAL FOR YOU';
}
}, 500);
})();
</script>