title: How to use meta tag in a browser version condition (IE 10 and above)?
body: <p>I'm using IE11. And I have to force the browser to act as IE 10 with a condition if the browser is IE11.
  Because of Microsoft removed support for <strong>Conditional Comments</strong>, I'm struggling to figure out a way.
  I tried this with JavaScript,</p>
  
  <pre><code>&lt;script language="JavaScript"&gt;
           function setVersion() {
               if (getInternetExplorerVersion() === 11) {
                   debugger;
                   $('head').append('&lt;meta http-equiv="X-UA-Compatible" content="IE=10" /&gt;');
               }
           }
           //Method to get the IE version
           function getInternetExplorerVersion() {
               var rv = -1;
               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);
               }
               else if (navigator.appName == 'Netscape') {
                   var ua = navigator.userAgent;
                   var re = new RegExp("Trident/.*rv:([0-9]{1,}[\.0-9]{0,})");
                   if (re.exec(ua) != null)
                       rv = parseFloat(RegExp.$1);
               }
               return rv;
           }
      &lt;/script&gt;
  </code></pre>
  
  <p>Now because of      <strong><em>getVersion</em></strong> is being called after loading the page, this code isn't making any effect. 
  Any other way to do this?</p>