Javascript获取浏览器信息

问题反馈
类别 名称 描述 当前浏览器的值
浏览器信息 navigator.userAgent 返回用户代理字符串,包含浏览器信息
navigator.appName 返回浏览器的名称
navigator.appVersion 返回浏览器的版本信息
navigator.platform 返回运行浏览器的操作系统平台
navigator.appCodeName 返回浏览器代码名称
navigator.language 返回浏览器的语言
navigator.vendor 返回浏览器的供应商名称
navigator.product 返回浏览器产品名称(通常为 "Gecko")
navigator.productSub 返回浏览器产品其他信息
navigator.onLine 返回浏览器的在线状态
navigator.cookieEnabled 返回浏览器是否启用了Cookie
navigator.javaEnabled() 返回浏览器是否启用了Java
navigator.doNotTrack 返回用户的 "请勿跟踪" 偏好
navigator.mimeTypes.length 浏览器的MIME类型数量
navigator.mimeTypes 浏览器MIME支持类型列表
navigator.plugins.length 浏览器安装插件数量
navigator.plugins 浏览器安装插件信息列表
硬件信息 navigator.hardwareConcurrency 返回CPU逻辑处理器的数量
navigator.deviceMemory 返回设备内存(以 GB 为单位)
navigator.maxTouchPoints 返回触控设备的最大触控点数量
页面信息 document.title 返回当前文档的标题
document.URL 返回当前页面的 URL
document.referrer 返回引荐页面的 URL
document.domain 返回当前文档的域名
document.lastModified 返回当前文档的上次修改日期
窗口信息 window.innerWidth 返回浏览器窗口的内部宽度
window.innerHeight 返回浏览器窗口的内部高度
window.outerWidth 返回浏览器窗口的外部宽度
window.outerHeight 返回浏览器窗口的外部高度
window.screenX 返回窗口相对于屏幕左边缘的水平坐标
window.screenY 返回窗口相对于屏幕上边缘的垂直坐标
窗口信息
screen.width 返回屏幕的宽度
screen.height 返回屏幕的高度
screen.availWidth 返回屏幕可用的宽度
screen.availHeight 返回屏幕可用的高度
screen.colorDepth 返回屏幕的颜色深度(以位为单位)
screen.pixelDepth 返回屏幕的像素深度(以位为单位)