♣ Tech & Biz Salon/Tech

ie11 버젼 체크, ie여부 체크

TasteGod 2014. 1. 3. 14:48

ie 지원만 되는 시스템쪽 링크 클릭시 ie가 아니면 요 링크쪽은 ie 에서 이용하라고 안내하는게 있습니다.

ie11 에서 안된다고 해서 서핑을 해보니 


[ User Agent String of IE11 ]


By default, Internet Explorer 11 on Windows 8.1 sends the following User-Agent string:

    Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko


* 출처

http://blogs.msdn.com/b/ieinternals/archive/2013/09/21/internet-explorer-11-user-agent-string-ua-string-sniffing-compatibility-with-gecko-webkit.aspx


훔.... MS는 왜 이러는걸까요... 이용자들 입장 생각하면 MSIE 스트링을 유지하면서 Trident 같은걸 추가해도 될텐데...

ie11 을 고려한 ie 여부 체크나 ie 버젼 체크는 아래 링크를 참고하세요

[ IE11 버젼체크, IE11을 고려한 IE여부 체크 ]

http://stackoverflow.com/questions/17907445/how-to-detect-ie11

* IE 여부 체크

function isIE() { return ((navigator.appName == 'Microsoft Internet Explorer') || ((navigator.appName == 'Netscape') && (new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})").exec(navigator.userAgent) != null))); }


IE11의 경우에도 호환성보기 설정시에는 아마 User Agent String 값에 MSIE 들어가는것으로 바뀔것 같으니

호환성보기해서 쓰라 라고 일단 안내를 하는 방법도 가능할 수 있을것 같네요