当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > DOM Navigator 对象
The Navigator object is an object that can be accessed through the navigator property of the Window object.
Navigator 对象可通过window对象的navigator属性来访问到
The Navigator object contains information about the client browser.
Navigator 对象包含了有关客户浏览器的信息
IE: Internet Explorer, F: Firefox, N: Netscape, W3C: World Wide Web Consortium (Internet Standard).
Collection 集合 | Description 描述 | IE | F | N | W3C |
---|---|---|---|---|---|
plugins[] | Returns a reference to all embedded objects in the document 返回所有嵌入文档对象的参考 | 4 | 1 | 3 |
Property 属性 | Description 描述 | IE | F | N | W3C |
---|---|---|---|---|---|
appCodeName | Returns the code name of the browser 返回浏览器代码名称 | 3 | 1 | 2 | |
appMinorVersion | Returns the minor version of the browser 返回浏览器的简短说明 | 4 | |||
appName | Returns the name of the browser 返回浏览器的名称 | 3 | 1 | 2 | |
appVersion | Returns the platform and version of the browser 返回浏览器的使用平台以及说明 | 3 | 1 | 2 | |
browserLanguage | Returns the current browser language 返回当前浏览器使用的语言 | 4 | |||
cookieEnabled | Returns a Boolean value that specifies whether cookies are enabled in the browser 返回一个布耳值来判断浏览器是否支持cookies | 4 | 1 | 6 | |
cpuClass | Returns the CPU class of the browser's system 返回浏览器系统使用的CPU类型 | 4 | |||
onLine | Returns a Boolean value that specifies whether the system is in offline mode 返回布尔值来判定系统是否处于离线模式 | 4 | |||
platform | Returns the operating system platform 返回系统运算平台 | 4 | 1 | 4 | |
systemLanguage | Returns the default language used by the OS 返回操作系统的默认语言 | 4 | |||
userAgent | Returns the value of the user-agent header sent by the client to the server 返回用户发送到服务器的header值 | 3 | 1 | 2 | |
userLanguage | Returns the OS' natural language setting 返回操作系统所设置的原状语言 | 4 |
Method 方法 | Description 描述 | IE | F | N | W3C |
---|---|---|---|---|---|
javaEnabled() | A Boolean value that specifies whether the browser has Java enabled 布尔值判定浏览器是否可用Java | 4 | 1 | 3 | |
taintEnabled() | A Boolean value that specifies whether the browser has data tainting enabled 布尔值判定是否可用data tainting | 4 | 1 | 3 |