navigator : Navigator Object « Navigator « JavaScript Tutorial






The navigator object is a built-in object that is used to obtain information related to the Navigator browser.

Properties and Methods of the navigator object

Property/MethodDescription
appCodeNameRepresents the code name of the browser
appNameRefers to the official browser name
appVersionRefers to the version information of the browser
javaEnabled()Function that tests to see that Java is supported in the browser
languageRefers to the language of the browser
mimeTypesRefers to an array of MimeType objects that contains all the MIME types that the browser supports
platformA string representing the platform on which the browser is running
pluginsRefers to an array of Plugin objects that contains all the plug-ins installed in the browser
plugins.refresh()Checks for any newly installed plug-ins
preference()Allows reading and setting of various user preferences in the browser
taintEnabled()Tests to see whether data-tainting is enabled
userAgentString that represents the user-agent header


<html>
    <head>
    <title> Example of the navigator object</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
       document.write(navigator.appName);
    -->
    </script>
    </body>
    </html>








17.1.Navigator Object
17.1.1.navigator
17.1.2.navigator.appCodeName
17.1.3.navigator.appName
17.1.4.navigator.appVersion
17.1.5.navigator.javaEnabled()
17.1.6.navigator.language
17.1.7.navigator.mimeTypes
17.1.8.navigator.mimeTypes[1].description
17.1.9.navigator.mimeTypes[1].type
17.1.10.navigator.platform
17.1.11.navigator.plugins
17.1.12.navigator.plugins[3].description
17.1.13.navigator.plugins.refresh()
17.1.14.navigator.preference()
17.1.15.navigator.taintEnabled()
17.1.16.navigator.userAgent
17.1.17.Associative object arrays of Navigator