澳门皇冠金沙网站-澳门皇冠844网站

热门关键词: 澳门皇冠金沙网站,澳门皇冠844网站

语言等等,JS获取浏览器名和版本信息

复制代码 代码如下:

Navigator 对象涵盖关于浏览器的音信。 

<html>
<head>
<title>JS完整获取IE浏览器新闻</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>
<tr>
澳门皇冠844网站,<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>

Navigator 对象属性和方式: 

您恐怕感兴趣的篇章:

  • js剖断ie版本号的大概完结代码
  • 用javascript判定IE版本号轻松实用且向后十二分
  • js判定浏览器版本以及浏览器内核的章程
  • JS获取IE版本号与HTML设置IE文书档案格局的艺术

澳门皇冠844网站 1

本文由澳门皇冠金沙网站发布于前端开发,转载请注明出处:语言等等,JS获取浏览器名和版本信息