Get Current IE Version


Hello readers..
IE(Internet Explorer) is the most hectic browser when implementing javascript. Some times we need to write browser specific javascript code, so we need to detect its Version first because different versions of IE run javascript differently. So below is the small piece of code to find current version of IE. The code is for IE only not for others browsers.

<html>
<head><title>IE Version Test</title></head>
<body>
<script type="text/javascript" language="javascript">

       var IEVer = navigator.appVersion.split(';')[1].split(' ')[2];
       document.write(IEVer);

</script>
</body>
</html>

Comments

Popular posts from this blog

Get Query String Values With Javascript

Change Css Class of li in ul onclick

Change Text Color with Javascript