function getInternetExplorerVersion() { var rv = -1; // Return value assumes failure. //You can user "navigator.appName" to detect other browsers as well. if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) { rv = parseFloat(RegExp.$1); if (rv > -1) { if (rv < 9.0) { alert("This is Not Microsoft Internet Explorer 9.0"); return; } } } } }
I have created this blog to help programmers who have just started their career thats why I have written all the tutorials from practical approach rather then theoretical. If anyone has any query related to programming don't hesitate to ask. My contact information is in my profile. Also I would like to thank all the websites/Individual(s) from whom I gathered the material.
Friday, March 30, 2012
Javascript - Detect Browser
Posted by
Zeeshan Ahmed Khan
at
3/30/2012 03:23:00 PM
Labels:
browser,
detection,
IE,
internet explorer,
Javascript
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment