title: JavaScript IE focus setTimeout not working with checkbox
body: <p>I am trying to fix the known "JavaScript focus() does not work in IE" problem with the setTimeout workaround.  However, it is not working when it is being called from within a function called by a checkbox's onchange event handler.</p>
  
  <p>In other words:</p>
  
  <pre><code>&lt;input type="checkbox" id="TheCheckbox"
         onchange="theCheckboxChanged()" /&gt;Check Here
  
  function theCheckboxChanged()
  {
      setTimeout(function () { document.getElementById("anotherElement").focus(); }
                 , 100);
  }
  </code></pre>
  
  <p>Yes, "anotherElement" exists at the time of the call - in fact, it works as written in Firefox.</p>
  
  <p>It also does not work if the checkbox is formatted as:</p>
  
  <pre><code>&lt;input type="checkbox" id="TheCheckbox"
         onchange="theCheckboxChanged()"&gt;Check Here&lt;/input&gt;
  </code></pre>