Hey hello guys I want I have this script here Code: <script language="javascript"> (function() { var __redirect_to = 'http://internetmarketingebooks.eu/';// 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].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! . I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.'; } })(); </script> Now I don't want it to redirect but I want it to put for a full page background image For example:
Advanced Exit Pop Up Questions
2
Hey hello guys I want I have this script here
Now I don't want it to redirect but I want it to put for a full page background image
For example:
http://www.hdwallpapers.in/walls/abs..._8016-wide.jpg
on top of the page when they try to exit and if they decide to stay remove it again and show the original page anyone can help me?
Code:
<script language="javascript">
(function() {
var __redirect_to = 'http://internetmarketingebooks.eu/';//
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].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! . I HAVE SOMETHING VERY SPECIAL FOR YOU COMPLETELY FREE.';
}
})();
</script> For example:
http://www.hdwallpapers.in/walls/abs..._8016-wide.jpg
on top of the page when they try to exit and if they decide to stay remove it again and show the original page anyone can help me?
- David Hall
Next Topics on Trending Feed
-
2