javascript navigator appVersion
appVersion | Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a |
Read-only | |
Reveals a version number of the browser engine, along with minimal operating system platform information (a subset of the information returned by userAgent). Sample returned values are as follows. |
|
Internet Explorer: 4.0 (compatible; MSIE 6.0; Windows 98; Q312461) 4.0 (compatible; MSIE 5.0; Macintosh; I; PPC) |
|
Navigator: 4.04 [en] (Win95; I) 5.0 (Macintosh; en-US) |
|
Note that the version number at the start of the value (up to the first whitespace) is not indicative of the actual browser application version, but rather of the fundamental engine. Thus, IE application Versions 4 through 6 (and perhaps later) all report engine Version 4.0; Netscape 6 is based on what it terms engine generation 5.0. Browser application version information is found elsewhere either in the appVersion, userAgent, or other navigator object properties. Do not use the first word of the appVersion value for any kind of browser version detection that influences which DOM or JavaScript language features are supported by the browser. In browsers leading up to Version 4, this property correctly reflected the application version, but that is no longer the case. |
|
While it may appear that the precise Internet Explorer version is embedded in this property's value (as MSIE X.XX), there are occasional mismatches in some versions. To inspect this portion of the version string, the navigator.userAgent property is more reliable. |
|
Example | |
var isVer4Min = parseInt(navigator.appVersion) >= 4; |
|
Value | |
String. |
|
Default | |
Depends on browser. |
Powered by Linode.