fvaffiliates
Posts: 10
Joined: 02 Sep 14
Trust:
30 Oct 14 12:54 pm
I think i am not getting what exactly you want ... you want to link to your affiliate video on squeeze page ... so basically you will link your squeeze page .. right?
you can use this script .. it worked fine for me on webpage.. not sure if it will work on WP as well but there is no harm in trying..
You can link any page with it .. just replace
www.YOURWEBSITEHERE.COMwith your exit page link
Place this code in the main file ..
<!-- Start of Exit Popup-->
<script language="javascript">
(function() {
setTimeout(function() {
var __redirect_to = '
www.YOURWEBSITEHERE.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 Popup -->
Shaishav Sood
(An Affiliate Marketer)