I trying to detect ie 7 or 6 and redirect users to the error page using the javascript bellow
var Browser = {
Version: function () {
var version = 999; // we assume a sane browser
if (navigator.appVersion.indexOf("MSIE") != -1)
// bah, IE again, lets downgrade version number
version = parseFloat(navigator.appVersion.split("MSIE")[1]);
return version;
}
}
if (Browser.Version() == 7 || Browser.Version() == 6) {
if (window.location.href != "/browser_problem") {
window.location.href = "/browser_problem";
}
}
I got some Feedback, that ie version 8.0.7601.17514 is redirect users to the error page like they are on ie 7 or 6.
Any idea what can be the problem?