码迷,mamicode.com
首页 > Web开发 > 详细

JS获取IE浏览器信息类型、版本、语言等

时间:2014-05-26 16:05:47      阅读:292      评论:0      收藏:0      [点我收藏+]

标签:style   c   class   blog   code   java   

分享下JS获取IE浏览器信息包括类型、版本、语言等的实例。

代码:

bubuko.com,布布扣
<html> 
<head> 
<title>JS完整获取IE浏览器信息--www.jbxue.com</title> 
</head> 
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> 
<table width="435" border="1" cellspacing="3" cellpadding="0"> 
<tr> 
<td>浏览器类型</td> 
<td> 
<script>document.write(navigator.appName)</script> 
</td> 
</tr> 
<tr> 
<td >浏览器版本</td> 
<td > 
<script>document.write(navigator.appVersion)</script> 

</td> 
</tr> 
<tr> 
<td>浏览器语言</td> 
<td> 
<script>document.write(navigator.browserLanguage)</script> 
</td> 
</tr> www.jbxue.com
<tr> 
<td >CPU类型</td> 
<td > 
<script>document.write(navigator.cpuClass)</script> 
</td> 
</tr> 
<tr> 
<td>操作系统</td> 
<td> 
<script>document.write(navigator.platform)</script> 
</td> 
</tr> 
<tr> 
<td >系统语言</td> 
<td > 
<script>document.write(navigator.systemLanguage)</script> 
</td> 
</tr> 
<tr> 
<td>用户语言;</td> 
<td> 
<script>document.write(navigator.userLanguage)</script> 
</td> 
</tr> 
<tr> 
<td >在线情况</td> 
<td > 
<script>document.write(navigator.onLine)</script> 
</td> 
</tr> 
<tr> 
<td>屏幕分辨率</td> 
<td> <script>document.write(window.screen.width+"x"+window.screen.height)</script></td> 
</tr> 
<tr> 
<td>颜色</td> 
<td> <script>document.write(window.screen.colorDepth+"位")</script></td> 
</tr> 
<tr> 
<td>字体平滑</td> 
<td><script>document.write(window.screen.fontSmoothingEnabled)</script></td> 
</tr> 
<tr> 
<td>appMinorVersion</td> 
<td> 
<script>document.write(navigator.appMinorVersion)</script> 
</td> 
</tr> 
<tr> 
<td >appCodeName</td> 
<td > 
<script>document.write(navigator.appCodeName)</script> 
</td> 
</tr> 
<tr> 
<td>cookieEnabled</td> 
<td> 
<script>document.write(navigator.cookieEnabled)</script> 
</td> 
</tr> 
<tr> 
<td >userAgent</td> 
<td > 
<script>document.write(navigator.userAgent)</script> 
</td> 
</tr> 
<tr> 
<td>javaEnabled</td> 
<td> 
<script>document.write(navigator.javaEnabled())</script> 
</td> 
</tr> 
<tr> 
<td >taintEnabled</td> 
<td > 
<script>document.write(navigator.taintEnabled())</script> 
</td> 
</tr> 
</table> 
</body> 
</html>
bubuko.com,布布扣

JS获取IE浏览器信息类型、版本、语言等,布布扣,bubuko.com

JS获取IE浏览器信息类型、版本、语言等

标签:style   c   class   blog   code   java   

原文地址:http://www.cnblogs.com/yes123/p/3746043.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!