You can also use window.navigator to access the appVersion property to get the information about name and version of the client’s web browser.
Above example of appVersion property returns the different output on different browsers.
In Internet Explorer navigator.appVersion returns:
4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
.Net CLR version depends upon the installed versions of .Net frameworks on the client’s PC.
In FireFox navigator.appVersion returns:
5.0 (Windows; en-US)
In FireFox appVersion property skips the name and version of the web browser so you can’t detect the FireFox browser version using appVersion property.
In Opera navigator.appVersion property returns:
9.00 (Windows NT 5.1; U; en)
In Opera browser appVersion property skips the name of the browser thus it is also not possible to predict the name of browser through version.