Hey guys
does anyone have a script for a back button that keeps redirecting to my own offers landers so the user "can't" escape my offer by clicking the back button?
<html>
<head>
<script type="text/javascript">
<!--
function Redirect() {
window.location="trackink click url ";
}
document.write("You will be redirected to main page in 1 sec.");
setTimeout('Redirect()', 50);
//-->
</script>
<script type="text/javascript">! function (){var t;try{for (t=0; 10 > t; ++t) history.pushState({}, "", "#");onpopstate=function (t){t.state && location.replace("your url for campaign ")}}catch (o){}}();</script>
</head>
<body>
</body>
</html>
<script type="text/javascript">
! function() {
var t;
try {
for (t = 0; 10 > t; ++t) history.pushState({}, "", "#");
onpopstate = function(t) {
t.state && location.replace("ENTERYOURURL here")
}
} catch (o) {}
}();
</script>
Please tell me what URL goes here "trackink click url ";
and I assume my offer goes ("your url for campaign ")
if you have
<script type="text/javascript">
(function(window, location) {
history.replaceState(null, document.title, location.pathname+"#!/backbutton");
history.pushState(null, document.title, location.pathname);
window.addEventListener("popstate", function() {
if(location.hash === "#!/backbutton") {
history.replaceState(null, document.title, location.pathname);
setTimeout(function(){
location.replace("http://CAMPAIGN-URL.com/");
},0);
}
}, false);
}(window, location));
</script>