[자바스크립트]javascript navigator userAgent 확인
익스플로러 11 : Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; .NET CLR 2.0.50727; .NET CLR 3.0.30729; .NET CLR 3.5.30729; InfoPath.3; rv:11.0) like Gecko
익스플로러 edge : Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2486.0 Safari/537.36 Edge/13.10586
크롬 : Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
파이어폭스 : Mozilla/5.0 (Windows NT 10.0; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
네이버 웨일 : Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.49 Whale/0.5.12.4 Safari/537.36
--------------------------------------------------------------------------------------------------------------
var userAgent=navigator.userAgent.toLowerCase();
var browser;
if(userAgent.indexOf('edge')>-1){
browser='익스플로러 엣지';
}else if(userAgent.indexOf('whale')>-1){
browser='네이버 웨일';
}else if(userAgent.indexOf('chrome')>-1){
browser='크롬';
}else if(userAgent.indexOf('firefox')>-1){
browser='파이어폭스';
}else{
browser='익스플로러';
}