How to detect whether the browser is ie11?
Copy link to clipboard
Copied
Hi all,
I was detecting browser for ie by using #CGI.HTTP_USER_AGENT# CONTAINS "MSIE" this.
Looks like internet explorer 11 does not contain MSIE. How can i detect ie 11 by using the same method?
Copy link to clipboard
Copied
The new IE 11 user agent string is usually:
Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko
The difference now being "Trident" instead of "MSIE"
Copy link to clipboard
Copied
ozgurozanyilmaz wrote:
Hi all,
I was detecting browser for ie by using #CGI.HTTP_USER_AGENT# CONTAINS "MSIE" this.Looks like internet explorer 11 does not contain MSIE.
Yes, the Internet Explorer 11 user-agent string changed!
How can i detect ie 11 by using the same method?
Write a CFM page that contains the following code:
<cfoutput>#CGI.HTTP_USER_AGENT#</cfoutput>
Visit the page on Internet Explorer 11. Ta-da!

