title: document.activeElement returns body in onblur handler
body: <p>Here is my HTML and JS:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function invokeFunc() {
    // ajax request 
    alert(document.activeElement);
    // this returns body element in firefox, safari and chrome.
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input id="text1" tabindex="1" onblur="invokeFunc()" /&gt;
  &lt;input id="text2" tabindex="2" onblur="invokeFunc()" /&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I am trying set focus onblur on text boxes with proper tabindex set.</p>
  <p>When I invoke the JavaScript function onblur and try to get <code>document.activeElement</code> it always returns the body element instead of the active element where focus is.</p>
  <p>How can I return the active element rather than the body?</p>