This works on IE8, but not firefox or opera. An
window.navigateis a non-standard Internet Explorer feature. Other browsers simply don't provide the function.You could shim it with:
if (! window.navigate) { window.navigate = function (arg) { location.assign(arg); } }… but your code would be better if you just rewrote it to use standard methods (i.e. the location object) in the first place.
Reference: https://stackoverflow.com/a/28793432/6737444