Avatar of APD Toronto
APD Toronto
Flag for Canada

asked on 

IE11 Check

Hello Experts,

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?

Thank you.

<script language="javascript">
if(navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substr(0,3) >= '4.0')
    self.location = "phone_order.asp";
    self.location = "getIE.asp";

Open in new window


Avatar of undefined
Last Comment
APD Toronto

8/22/2022 - Mon