GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

Navigator: appVersion property

HTML DOM

HTML DOM

The **`Navigator.appVersion`** read-only property of the Navigator interface returns a string representing version information about the browser.

## Value

A string.

## Description

The `appVersion` property returns information indicating the browser version.

Note that the information returned varies significantly by browser. In some browsers, such as Chrome, this is nearly the same as the value returned by Navigator.userAgent, with the `Mozilla/` prefix removed. For example:

```plain
5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36
```

In other browsers, such as Firefox, this is cut down to a short string that hints at the platform/OS. For example:

```plain
5.0 (Macintosh)
```

Theoretically this information is useful for detecting the browser and serving code to work around browser-specific bugs or lack of feature support. However, this is **unreliable** and **is not recommended** for the reasons given in [User-Agent reduction](/docs/Web/HTTP/Guides/User-agent_reduction) and [Browser detection using the user agent](/docs/Web/HTTP/Guides/Browser_detection_using_the_user_agent).

[Feature detection](/docs/Learn_web_development/Extensions/Testing/Feature_detection) is a much more reliable strategy.

## Examples

```js
console.log(navigator.appVersion);
// On Chrome, logs something like "5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36" (reduced UA string)

// On Firefox, logs something like "5.0 (Macintosh)"
```

## Specifications

## Browser compatibility

## See also

- Navigator.userAgent
- User-agent HTTP header

source: MDN Web Docs mirror · page

Cite this

"Navigator: appVersion property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/Navigator/appVersion

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·