JS Edit Brower Location Back

 window.onpopstate = function() {
       alert("clicked back button");
    }; history.pushState({}, '');
Healthy Hare