Navigator Object
Navigator Object
The Navigator object contains information about the browser.
Note:There is no publicly supported standard applied to the navigator object, but all browsers support this object.
Navigator object collection
Collection | Description |
---|---|
plugins[] |
Return a reference to all embedded objects in the document. This collection is an array of Plugin objects, where each element represents a plugin that the browser has installed. The Plugin object provides information about the plugin, including a list of MIME types it supports. Although the plugins[] array is defined by IE 4, it is always empty in IE 4 because IE 4 does not support plugins and the Plugin object. |
Navigator object property
Property | Description |
---|---|
appCodeName | Return the code name of the browser. |
appMinorVersion | Returns the secondary version of the browser. |
appName | Returns the name of the browser. |
appVersion | Returns the platform and version information of the browser. |
browserLanguage | Returns the current browser language. |
cookieEnabled | Returns a boolean value indicating whether cookies are enabled in the browser. |
cpuClass | Returns the CPU level of the browser system. |
onLine | Returns a boolean value indicating whether the system is in offline mode. |
platform | Returns the platform of the operating system on which the browser is running. |
systemLanguage | Returns the default language used by the OS. |
userAgent | Returns the value of the user-agent header sent by the client to the server. |
userLanguage | Returns the natural language setting of the OS. |
Navigator Object Methods
Method | Description |
---|---|
javaEnabled() | Specifies whether Java is enabled in the browser. |
taintEnabled() | Specifies whether data tainting (data tainting) is enabled in the browser. |
Navigator Object Description
The properties contained in the Navigator Object describe the browser being used. These properties can be used for platform-specific configurations.
Although the name of this object is clearly that of the Netscape Navigator browser, other browsers that have implemented JavaScript also support this object.
The instance of the Navigator Object is unique and can be referenced using the navigator property of the Window Object.