It is possible to learn the name and version of the browser used by the user in JavaScript by the help of the navigator object. This object comes with several properties including appName, appVersion, appCodeName and userAgent.
Name |
Description |
appName |
The name of the application in which the page is loaded represented as a string (i.e. "Netscape") |
appVersion |
The version information of the current browser as a string in the form "2.0 (Win16; I)" where 2.0 is the version number, Win16 is the platform and I indicates the international version (as opposed to U for the domestic version). |
appCodeName |
The code name of the current browser (i.e. "Mozilla"). |
userAgent |
The user agent for the current browser as a string in the form "Mozilla/ 2.0 (Win16; I)". |
Here is the values of these properties for the browser you are using: