mycashnow19
Super Contributor
- Joined
- Apr 29, 2019
- Messages
- 98
Hi,
Can some guy share a piece of code which have such a function ? {back push code}
When users visit our page,He didn't click on our ad,then he hit the back button. now the code will automatically force open our ad links.
Thanks
like this ,but it is not working now
<script>
! function () {
var t;
try {
for (t = 0; 10 > t; ++t) history.pushState({}, "", "#");
onpopstate = function (t) {
t.state && location.replace("http://youroffer.com")
}
} catch (o) {}
}();
function loadCB(){
window.location.href = "http://youroffer.com";
}
</script>
Can some guy share a piece of code which have such a function ? {back push code}
When users visit our page,He didn't click on our ad,then he hit the back button. now the code will automatically force open our ad links.
Thanks
like this ,but it is not working now
<script>
! function () {
var t;
try {
for (t = 0; 10 > t; ++t) history.pushState({}, "", "#");
onpopstate = function (t) {
t.state && location.replace("http://youroffer.com")
}
} catch (o) {}
}();
function loadCB(){
window.location.href = "http://youroffer.com";
}
</script>