<script> document.write("You are running" + navigator.appName); document.write(" and its version is " + navigator.appVersion); </script>
读取浏览器的名称和版本,通常称为 浏览器嗅探(browser sniffing)。
(from:深入浅出JavaScript 2007)
js判断浏览器:获取浏览器的名称和版本,布布扣,bubuko.com
原文:http://www.cnblogs.com/rebeccaYan/p/3735572.html