window.history.pushState({page: 1}, "", ""); window.onpopstate = function(event) { if(event){ window.location.href = 'https://kahoonica.knesia.com/2019/11/toon-comics-close-as-neighbors.html'; // Code to handle back button or prevent from navigation } }