javascript window redirect doesn't work in chrome ((canceled) - status ) javascript window redirect doesn't work in chrome ((canceled) - status ) google-chrome google-chrome

javascript window redirect doesn't work in chrome ((canceled) - status )


Try without window., it helped in my case. I had used location.assign() instead of window.location.assign() and worked.


I was doing the same thing. A quick patch was to add a little delay before the redirect using setTimeout.


I was getting a similar problem, the issue was a button submitting a form while executing the window.location.href = ... code.

I had to put type="button" in the button attributes to prevent it from submitting.