title: How to detect IE 11 with javascript in Asp.net
body: <p>Hello I want to detect the Browser , IE 8 or more will be appropriate for me. For this i used following code but it fails for IE 11 . For other its detecting properly.</p>
  
  <pre><code>function getInternetExplorerVersion()
  {
      var rv = -1; // Return value assumes failure.
      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);
      }
      return rv;
  }
  </code></pre>
  
  <p>Below is the link which also I tried but couldn't succeed.</p>