使用navigator对象,输出当前浏览器的信息

<script type="text/javascript">
with(document)
{
write("你的浏览器信息:<ol>");
write("<li>代码:"+navigator.appCodeName);
write("<li>名称:"+navigator.appName);
write("<li>版本:"+navigator.appVersion);
write("<li>语言:"+navigator.language);
write("<li>编译平台:"+navigator.platform);
write("<li>用户表头:"+navigator.userAgent);
}
</script>

你可能感兴趣的:(navigator)