
Код:
function BrowserType() {
var vAgent;
vAgent = navigator.userAgent.toLowerCase();
if( (vAgent.indexOf('mozilla') != -1) && (vAgent.indexOf('spoofer') == -1) && (vAgent.indexOf('compatible') == -1) && (vAgent.indexOf('opera') == -1) &&
(vAgent.indexOf('webtv') == -1) )
{ return "NC";
}
if (vAgent.indexOf("msie") != -1) {
return "IE";
}
return "other";
}