Navigator browser object in Javascript

Source: Internet
Author: User

The Navigator browser object that contains the version information of the currently used navigator. Displays information about the browser currently used. When the Javascript client is running, the engine automatically creates a navigator object.
For more details, refer to the description documents after msdn or navigator 2.0. Here we will give a brief description.
Includes the following attributes:

Appcodename: return the "code name" (?) of the browser "(?), Popular IE and NN both return 'mozilla '.
The following example shows the value of the appcodename attribute:
Document. Write ("the value of navigator. appcodename is" + navigator. appcodename)

Appname: returns the browser name. IE returns 'Microsoft Internet Explorer ', NN returns 'netscape '.
The following example shows the appname attribute value:
Document. Write ("the value of navigator. appname is" + navigator. appname)

Appversion returns the browser version, including the large version, minor version, language, and operating platform.

Language

Mimetype indicates the supported MIME type in array

Platform returns the operating platform of the browser. For Windows 9x browsers, 'win32 'is returned (the case may vary ).

Useragent returns all the preceding information. For example, ie5.01 returns 'mozilla/4.0 (compatible; MSIE 5.01; Windows 98 )'.

Plug-ins use arrays to indicate installed plug-insProgram

Javaenabled () returns a Boolean value, indicating that the current browser does not allow Java.

Check the browser version, supported MIME types, and installed plug-ins (plug-in ). This object contains two sub-objects: a plug-in object and a mime-type object.
For example:
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]

For example:
[Ctrl + A select all Note: If you need to introduce external JS, You need to refresh it to execute]

Related Article

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.