A few years back, I came up with the code below to check if the IE is version 8 or higher. This worked well for IE 8, 9, and 10, but now for IE11 it comes as false and goes to my else
condition. Why is this, and how can I include IE11 as well?
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substr(0,3) >= '4.0')
self.location = "phone_order.asp";
self.location = "getIE.asp";