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

How to detect whether the browser is ie11?

New Here ,
Apr 14, 2014 Apr 14, 2014

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?

Views

2.7K

Translate

Translate

Report

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

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"

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

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
Documentation