Get the version of Internet Explorer ( IE ) using Navigator object of javascript
In the process of asp.net application developement , sometimes developers need to code according to version of Internet explorer.
This case arises when they face some issue due to different versions. So, they need to code according to version.
Javascript provide an object called Navigator, which provides useful information about the visitors browser and system.
Here is a javascript function which will use navigator object to identify the version of Internet Explorer
Other then getting the IE version , one more important method of navigator is
javaEnabled(), which Tests whether Java is enabled. It Returns Boolean value.
The properties exposed by navigator object are...
1. appCodeName : Returns the code name of the browser.
2. userAgent : String passed by browser as user agent header ( e.g. "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; Alexa Toolbar; .NET CLR 3.0.04506.590; .NET CLR 3.5.20706)"
3. appName : Name of the browser.
4. cookieEnabled : Returns a boolean value.
5. language : Returns the default language of the browser. This property is suported by firefox only.
6. platform[] : The Client computer platform. For example win32.
7. systemLanguage : Returns the default language of operating system. This property is supported by IE only.
Happy Coding !!!
