var agt = navigator.userAgent.toLowerCase(); if (agt.indexOf("chrome") != -1) { alert('크롬'); } if (agt.indexOf("msie") != -1) { alert('ie10 까지'); } if (agt.indexOf("trident") != -1) { alert('ie11 '); } window.close(); }
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko
Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)
|