Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

The JavaScript FAQ
Prev Home Next

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

The JavaScript FAQ
Prev Home Next


 
 
  Mirrored with kind permission of Alexei Kourbatov Design by Interspire