I\'m having a problem with a \'popstate\' event handler, this is my code:
window.addEventListener(\"popstate\", function (event){
if (event.state) {
No it will not,
As per MDN documentation
Note that just calling history.pushState() or history.replaceState() won't trigger a popstate event. The popstate event is only triggered by doing a browser action such as a click on the back button (or calling history.back() in JavaScript).
Again as per this question the popstate event is not triggered in Chrome when you call pushState().