HTML Dom tutorial 10-html Dom navigator object

Source: Internet
Author: User

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

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.