Skip to main content
Participant
April 14, 2014
Question

How to detect whether the browser is ie11?

  • April 14, 2014
  • 2 replies
  • 2855 views

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?

This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
April 15, 2014

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!

Inspiring
April 15, 2014

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"