H I O X INDIA
Javascript Tutorial
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

Java-Script Tutorial
Introduction
Variables
Operators
Statements
Loops
Functions
Objects
Arrays
Browser Objects
Form DOM
Ask Your Doubts
Feedback





Navigator Object Property


Topic

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



Explanation
Navigator Object:
        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 properties. 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.


        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.

others

privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com

Other Links