How To Identify Ie Browsers Build And Sub Build Numbers?
http://msdn.microsoft.com/en-us/library/3yekbd5b.aspx Using this link we are no where able to find the build and sub build version! For more information regarding the build and sub
Solution 1:
You can detect their user agent, and extract the data you need from there. Their user agent is stored in: navigator.userAgent
An example of a user agent is as follows:
Mozilla/5.0 (Windows NT 6.1) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.77 Safari/535.7
From that string, you can tell I am running windows 6.1 (win 7), and my browser is chrome 16.0.912.77.
Solution 2:
Below javascript can give the browser name and application version:
var txt = "Browser Name: " + navigator.appCodeName;
txt+= " and Browser Version: " + navigator.appVersion;
alert(txt); // alerts the browser name and version
Solution 3:
If JavaScript is available, you can use the JQuery Browser values. If I recall correctly the implementation is marked as deprecated, but I used in the past for a project and had no problem with it. On the demopage is shows values that contain sub build numbers.
Part of the javascript file that I used:
if ($.browser.msie && $.browser.version == '7.0') {
//do something
}
Post a Comment for "How To Identify Ie Browsers Build And Sub Build Numbers?"