Techcss
Javascript_page_menu

JavaScript Navigator Object

The navigator object is used to get information such as, appName, appCodename and appVersion of the current browser.

The navigator object is used to get information about the curent browser.

The four properties of this object are given below.

Name Description
appName Name of the application in which the page is loaded, represented as string
appVersion Version of the current browser as a string
appCodeName The code name of the current browser(Mozilla)
userAgent The user Agent for the current browser as a string

The user agent is a string that contains the code name and version information of the browser. This information is available in the appCode Name and appVersion properties.
The prperties of the navigator object can be used to find out if different browser support JavaScript. Each browser has some unique features and script authors can make use of all the browsers to explore the features in their script.