WorkerNavigator: appVersion property
Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see thecompatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
Note: This feature is only available inWeb Workers.
Returns either"4.0" or a string representing version information aboutthe browser.
Note:Do not rely on this property to return the correct browser version.
In this article
Value
Either"4.0" or a string representing version information about thebrowser.
Examples
alert(`Your browser version is reported as ${navigator.appVersion}`);Notes
Thenavigator.userAgent property may also contain the versionnumber (for example"Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape 6/6.1"),but you should be aware of how easy it is to change the user agent string and "spoof"other browsers, platforms, or user agents, and also how cavalier the browser vendorthemselves are with these properties.
Thenavigator.appVersion,navigator.appName andnavigator.userAgent properties have been used in "browser sniffing"code: scripts that attempt to find out what kind of browser you are using and adjustpages accordingly. This lead to the current situation, where browsers had to return fakevalues from these properties in order not to be locked out of some websites.
Specifications
| Specification |
|---|
| HTML> # dom-navigator-appversion-dev> |