This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

appVersion

Summary

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.

Property of dom/Navigatordom/Navigator

Syntax

Note: This property is read-only.

var result = navigator.appVersion;

Return Value

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)

Examples

This example enumerates the properties of the navigator object for the current web browser and displays them on the screen.


View live example

Usage

 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.

Notes

Remarks

Syntax

Attributions