I have a website that changes the URL without reloading with the following command on Chrome:
window.history.pushState(“object or string”, “Title”, “/new-url”);
Is there a way to detect such an event from Javascript? I tried this, but it doesn't work:
$(window).bind('hashchange', function() {
alert("CHANGED!!");
});