JavaScript Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
Java-Script Tutorial
Introduction Introduction
Variables Variables
Operators Operators
Statements Statements
Loops Loops
Functions Functions
Objects Objects
Arrays Arrays
Cookies JS Cookies
Browser Objects Browser Objects
Form DOM Form DOM
Style Objects DOM Style Objects
Forums Ask Your Doubts
Scraps More about Javascript
Feedback Feedback
 




Navigator Object Property


Tutorials Javascript

Topic

How can we find the browser properties like name, version, language, platform, userAgent or user agent string using javascript?



Explanation
        Navigator object in javascript contains the information about the client browser window. The following table lists the properties of navigator object. Not all browsers have same navigator property. Internet Explorer may have some properties that may not be there in mozilla and vice versa.

PropertyDescriptionResult
appCodeName appCodeName is used to get the code name of the browser
appName appName is used to get the name of the browser
appVersion appVersion is used to get the version of the browser
language property "language" is used to get the language configured in browser preference.
mimeTypes property "mimeTypes" is used to get an array of mimeTypes supported by the browser
platform property "platform" will return the OS(operating system) in which the browser is running (e.g: Win32, linux, etc..)
plugins property "plugins" is used to get an array of plugins installed in the browser.
userAgent property "userAgent" is used to get the user-agent header. user agent string information will be added in the HTTP protocol used for data transfer from browser to the server.

The result part in the above table shows the browser properties like name, version, language, platform, userAgent or user agent string , etc... of the browser you are using currently.





A Note
Javascript (JS) is one of the most used languages in the world. Some times spelled as Java Script. Hope you enjoy this tutorial. Do send your feedback or suggestions on this javascript or java script tutorial. This is a copyright content.

Other Links

web hosting