Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to detect whether the browser is ie11?

New Here ,
Apr 14, 2014 Apr 14, 2014

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?

2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Apr 15, 2014 Apr 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"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 15, 2014 Apr 15, 2014
LATEST

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources