Returns the version of the browser as a string. It may be either a plain version number, like "5.0", or a version number followed by more detailed information. The HTML5 specification also allows any browser to return “4.0” here, for compatibility reasons.
Note: This property is read-only.
var result = navigator.appVersion;
Returns an object of type StringString
The appVersion property returns a value based on the application name, application version, and platform. This syntax shows the format of the returned value.
clientVersion (platform; information; extra Information) or 5.0 (compatible; MSIE 5.5; Windows 98; Win 9x 4.90)
This example enumerates the properties of the navigator object for the current web browser and displays them on the screen.
Do not rely on this property to return the correct browser version. In Gecko-based browsers (like Firefox) and WebKit-based browsers (like Chrome and Safari) the returned value starts with "5.0" followed by platform information. In Opera 10 and newer the returned version does not match the actual browser version, either.