Dave's Brain

Browse - Programming Tips - Can I detect IE11 from its user agent string?

Date: 2013oct9
Product: IE
Keywords: Internet Explorer, iexplore

Q.  Can I detect IE11 from its user agent string?

A.  No!

OK, that was a bit strong.
In previous versions of IE the user agent string contained "MSIE".
But its not there for IE11.
It does have "Trident" which is the layout engine.

Example IE11 user agent string:

Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko
More info http://en.wikipedia.org/wiki/Internet_Explorer_11

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.