title: jQuery.focus not working in I.E 11
body: <p>I want to get <code>focus</code> on an <code>anchor tag</code> from the <code>URL</code></p>
  
  <p><strong>Anchor tag</strong></p>
  
  <pre><code>&lt;a id='714895'&gt;&amp;nbsp;&lt;/a&gt;
  </code></pre>
  
  <p><strong>URL</strong></p>
  
  <p><a href="http://test.com/sites/alzheimers-disease-early-detection.aspx?ShowAllComments=True#714895" rel="nofollow">http://test.com/sites/alzheimers-disease-early-detection.aspx?ShowAllComments=True#714895</a></p>
  
  <p><strong>jQuery Code</strong></p>
  
  <pre><code> try
  {
  if(document.URL.indexOf("?ShowAllComments=True#") &gt;= 0){
  var elementClicked = "#" +location.href.split('#')[1];
  $("elementClicked").focus();
  }
  catch(e)
  {alert(e.message);}
  </code></pre>
  
  <p>Also tried </p>
  
  <pre><code> try
  {
  if(document.URL.indexOf("?ShowAllComments=True#") &gt;= 0){
  var elementClicked = "#" +location.href.split('#')[1];
  $("elementClicked").focus().focus();
  }
  catch(e)
  {alert(e.message);}
  </code></pre>
  
  <p>And</p>
  
  <pre><code> try
  {
  if(document.URL.indexOf("?ShowAllComments=True#") &gt;= 0){
  setTimeout(function(){
  var elementClicked = "#" +location.href.split('#')[1];
  $("elementClicked").focus();},100);
  }
  }
  catch(e)
  {alert(e.message);}
  </code></pre>
  
  <p>Code works perfectly on <code>Firefox</code> and <code>Chrome</code> but does not work in <code>I.E</code>.
  Any other way or modifications should be done to work it in I.E too..</p>