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]