Browser Version
Question: How do I detect the browser version?
Answer:
Unfortunately, the value of navigator.appVersion
is no good for detecting the browser version.
For example, in many JavaScript-aware browsers, the navigator.appVersion
value is
meant to be the number of compatible Netscape Navigator version rather than
the version of the user's actual browser.
(Even in the early days of JavaScript, Microsoft Internet Explorer 3 used to return
the string navigator.appVersion
that began with 2, which was intended to reflect
the compatibility with Netscape Navigator 2.)
Thus, to get the full version number of any of the above browsers,
you need to rely primarily on the navigator.userAgent
string,
like in the Browser Name code example.
Here is your browser's name and version:
(Source code can be found in the Browser Name article.)
JavaScripter.net.
Copyright
© 1999-2006, Alexei Kourbatov