window.location.reload not working for Firefox and Chrome window.location.reload not working for Firefox and Chrome google-chrome google-chrome

window.location.reload not working for Firefox and Chrome


I have two other options to you:

history.go(0);

And:

window.location.href = window.location.href;

I'm not tested it on Firefox and Chrome yet, but it may help you faster. Tomorrow I'll do the tests and update the answer if this not work.


I had this problem in AngularJS and in Firefox. (Reloading was fine in Chrome).By using setTimeout problem solved.

setTimeout(function(){  window.location.reload();});


Have you tried this?:

window.location = window.location;

Apparently you can drop the "window.", but haven't tried it myself.