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/Method | Description |
appCodeName | Represents the code name of the browser |
appName | Refers to the official browser name |
appVersion | Refers to the version information of the browser |
javaEnabled() | Function that tests to see that Java is supported in the browser |
language | Refers to the language of the browser |
mimeTypes | Refers to an array of MimeType objects that contains all the MIME types that the browser supports |
platform | A string representing the platform on which the browser is running |
plugins | Refers 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 |
userAgent | String 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 |