Minggu, 21 April 2019
Cara Membuat Tombol Back Tidak Berfungsi di Blog
letakkan setelah <head>
kode
<script>
var ref = document.referrer;
var siteurl = window.location.origin?window.location.origin+'/':window.location.protocol+'/'+window.location.host+'/';
if (ref.indexOf("url blog")!= -1){
} else {
(function(window, location) {
history.replaceState(null, document.title, location.pathname+"#!/auth");
history.pushState(null, document.title, location.pathname);
window.addEventListener("popstate", function() {
if(location.hash === "#!/auth") {
history.replaceState(null, document.title, location.pathname);
setTimeout(function(){
location.replace("URL BLOG ANDA");
},0);
}
}, false);
}(window, location));
}
</script>
Langganan:
Postingan (Atom)