JS完整检测并获取IE浏览器信息

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
    <meta content="no-transform" http-equiv="Cache-Control">
    <meta content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" name="viewport">
    <title>JS完整检测并获取IE浏览器信息丨石家庄展柜厂|石家庄防盗门</title>
    </head>
    <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
    <table width="320px" cellspacing="3" cellpadding="0" border="1">
    <tbody><tr>
    <td width="107">浏览器类型</td>
    <td width="198">
    <script>document.write(navigator.appName)</script>Netscape
    </td>
    </tr>
    <tr>
    <td>浏览器版本</td>
    <td>
    <script>document.write(navigator.appVersion)</script>5.0 (Windows)
    </td>
    </tr>
    <tr>
    <td>浏览器语言</td>
    <td>
    <script>document.write(navigator.browserLanguage)</script>undefined
    </td>
    </tr>
    <tr>
    <td>CPU类型</td>
    <td>
    <script>document.write(navigator.cpuClass)</script>undefined
    </td>
    </tr>
    <tr>
    <td>操作系统</td>
    <td>
    <script>document.write(navigator.platform)</script>Win32
    </td>
    </tr>
    <tr>
    <td>系统语言</td>
    <td>
    <script>document.write(navigator.systemLanguage)</script>undefined
    </td>
    </tr>
    <tr>
    <td>用户语言;</td>
    <td>
    <script>document.write(navigator.userLanguage)</script>undefined
    </td>
    </tr>
    <tr>
    <td>在线情况</td>
    <td>
    <script>document.write(navigator.onLine)</script>true
    </td>
    </tr>
    <tr>
    <td>屏幕分辨率</td>
    <td>      <script>document.write(window.screen.width+"x"+window.screen.height)</script>1876x1173</td>
    </tr>
    <tr>
    <td>颜色</td>
    <td> <script>document.write(window.screen.colorDepth+"位")</script>24位</td>
    </tr>
    <tr>
    <td>字体平滑</td>
    <td><script>document.write(window.screen.fontSmoothingEnabled)</script>undefined</td>
    </tr>
    <tr>
    <td>appMinorVersion</td>
    <td>
    <script>document.write(navigator.appMinorVersion)</script>undefined
    </td>
    </tr>
    <tr>
    <td>appCodeName</td>
    <td>
    <script>document.write(navigator.appCodeName)</script>Mozilla
    </td>
    </tr>
    <tr>
    <td>cookieEnabled</td>
    <td>
    <script>document.write(navigator.cookieEnabled)</script>true
    </td>
    </tr>
    <tr>
    <td>userAgent</td>
    <td>
    <script>document.write(navigator.userAgent)</script>Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20100101 Firefox/11.0
    </td>
    </tr>
    <tr>
    <td>javaEnabled</td>
    <td>
    <script>document.write(navigator.javaEnabled())</script>false
    </td>
    </tr>
    <tr>
    <td>taintEnabled</td>
    <td>
    <script>document.write(navigator.taintEnabled())</script>false
    </td>
    </tr>
    </tbody></table>
    </body></html>
    <br><br><hr>
    
时间: 2024-08-08 03:54:27

JS完整检测并获取IE浏览器信息的相关文章

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

分享下JS获取IE浏览器信息包括类型.版本.语言等的实例. 代码: <html> <head> <title>JS完整获取IE浏览器信息--www.jbxue.com</title> </head> <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table

C#获取客户端浏览器信息

Request.Browser.MajorVersion.ToString();//获取客户端浏览器的(主)版本号Request.Browser.Version.ToString();//获取客户端浏览器的完整版本号 Request.Browser.Platform.ToString();//获取客户端使用平台的名字 Request.UserHostAddress.ToString(); //获取远程客户端主机IP HttpRequest.Url 获取有关当前请求的 URL 的信息. HttpR

.Net Web Api——获取客户端浏览器信息

第一次接触到web api,发现这个东西是REST风格的:---- 微软的web api是在vs2012上的mvc4项目绑定发行的,它提出的web api是完全基于RESTful标准的,完全不同于之前的(同是SOAP协议的)wcf和webService,它是简单,代码可读性强的,上手快的,如果要拿它和web服务相比,我会说,它的接口更标准,更清晰,没有混乱的方法名称,有的只有几种标准的请求,如get,post,put,delete等,它们分别对应的几个操作,下面讲一下: GET:生到数据列表(默

js获取浏览器信息及版本(兼容IE)

获取浏览器信息方法有很多种,但是要是兼容ie旧版本就有点麻烦了,因为很多方法在旧版本ie是不支持的,所以ie我做了单独处理,但是目前还有小问题,就是想显示QQ浏览器,搜狗浏览器..这样的,这样还实现不了,因为他们用的别人的浏览器内核,没办法 代码: <template> <section class="p-10"> <h1> {{ browse }} </h1> </section> </template> <

JS获取当前浏览器的类型

<script type=“text/javascript”> function isIE(){return navigator.appName.indexOf(“Microsoft Internet Explorer”)!=-1 && document.all;} function isIE6() {return navigator.userAgent.split(“;”)[1].toLowerCase().indexOf(“msie 6.0″)==“-1″?false:tr

js 获取浏览器信息

执行步骤: 1.autoscan 2.vi configure.scan 3.mv configure.scan configure.in #                                               -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.68]) AC_INIT([FULL-PACKAGE-NAME], [VE

JS 获取浏览器信息,给出友情提示,避免部分兼容性问题

最近在做webform,浏览器兼容是个问题,这里我收集了一些获取浏览器信息的资料,可以给一些用户使用时,提示浏览器版本过低,让升级版本用. 这样会给开发的我们,省下很多用来调试兼容性的时间和精力.  本人就是这样想的 ~ 检测浏览器及版本 使用 JavaScript 检测关于访问者的浏览器名称及其版本. 代码部分: <html><body><script type="text/javascript">var browser=navigator.app

js获取浏览器信息和页面信息

1.js获取浏览器信息:包含判断是否为移动端,以及浏览器信息,android版本 2.js获取页面url.domain.title function browserInfo() { var browser = { versions : function() { var u = window.navigator.userAgent; //android版本 var num; if (u.indexOf('Trident') > -1) { //IE return "IE"; } e

JS获取各种浏览器窗口大小的方法

常用:JS 获取浏览器窗口大小 // 获取窗口宽度 if (window.innerWidth) winWidth = window.innerWidth; else if ((document.body) && (document.body.clientWidth)) winWidth = document.body.clientWidth; // 获取窗口高度 if (window.innerHeight) winHeight = window.innerHeight; else if