== 브라우저 체크 == 

userAgent를 가져와서 체크. 버전이 바뀌면 변할 수 있다.

{{{#!gcode
var agt = navigator.userAgent.toLowerCase();
if (agt.indexOf("chrome") != -1) return 'Chrome'; 
if (agt.indexOf("opera") != -1) return 'Opera'; 
if (agt.indexOf("staroffice") != -1) return 'Star Office'; 
if (agt.indexOf("webtv") != -1) return 'WebTV'; 
if (agt.indexOf("beonex") != -1) return 'Beonex'; 
if (agt.indexOf("chimera") != -1) return 'Chimera'; 
if (agt.indexOf("netpositive") != -1) return 'NetPositive'; 
if (agt.indexOf("phoenix") != -1) return 'Phoenix'; 
if (agt.indexOf("firefox") != -1) return 'Firefox'; 
if (agt.indexOf("safari") != -1) return 'Safari'; 
if (agt.indexOf("skipstone") != -1) return 'SkipStone'; 
//if (agt.indexOf("msie") != -1) return 'Internet Explorer'; // * IE 10 이후는 적용 안 됨
if (agt.indexOf("trident") != -1) return 'Internet Explorer'; // * 버전 체크 참조
if (agt.indexOf("netscape") != -1) return 'Netscape'; 
if (agt.indexOf("mozilla/5.0") != -1) return 'Mozilla'; 
}}}


== IE 버전 체크 ==

* IE는 10부터 버전 확인 부분이 다음처럼 바뀌었다. 

IE 7
{{{#!php
Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
}}}

IE 11
{{{#!php
mozilla/5.0 (windows nt 6.1; wow64; trident/7.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; media center pc 6.0; .net4.0c; infopath.3; .net4.0e; rv:11.0) like gecko
}}}

IE 9까지는 `msie: X.0` 으로,

IE 10 이후는 `rv:XX.0` 로 버전 확인을 해야한다.