Navigator Object Property

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.

Ask Questions

Ask Question