HTML Dom tutorial 10-html Dom navigator object
1: navigator object
The navigator object is actually a JavaScript Object, not an html dom object.
The navigator object is automatically created by the Javascript runtime engine and contains information about the client browser.
2: Set of Navigator objects
Set |
Description |
IE |
F |
O |
Plugins [] |
Returns a reference to all embedded objects in the document. This collection is an array of plugin objects, and the elements represent the plug-ins installed in the browser. The plug-in object provides information about the plug-in, including a list of supported MIME types. Although the Plugins [] array is defined by IE 4, it is always empty in IE 4, because IE 4 does not support plug-ins and plugin objects. |
4 |
1 |
9 |
3: attributes of the navigator object
Attribute |
Description |
IE |
F |
O |
Appcodename |
Return to the browser'sCodeName. |
4 |
1 |
9 |
Appminorversion |
Returns the secondary version of the browser. |
4 |
No |
No |
Appname |
Returns the name of the browser. |
4 |
1 |
9 |
Appversion |
Return the platform and version information of the browser. |
4 |
1 |
9 |
Browserlanguage |
Returns the language of the current browser. |
4 |
No |
9 |
Cookieenabled |
Returns a Boolean value indicating whether the cookie is enabled in the browser. |
4 |
1 |
9 |
Cpuclass |
Returns the CPU level of the browser system. |
4 |
No |
No |
Online |
Returns a Boolean value indicating whether the system is in offline mode. |
4 |
No |
No |
Platform |
Return to the operating system platform that runs the browser. |
4 |
1 |
9 |
Systemlanguage |
Returns the default OS language. |
4 |
No |
No |
Useragent |
Returns the value of the User-Agent header of the server sent by the client. |
4 |
1 |
9 |
Userlanguage |
Returns the OS's natural language settings. |
4 |
No |
9 |
4: Method of the navigator object
Method |
Description |
IE |
F |
O |
Javaenabled () |
Specifies whether the browser enables Java. |
4 |
1 |
9 |
Taintenabled () |
Specifies whether the browser enables data tainting ). |
4 |
1 |
9 |