title: Keeping a textarea always focused
body: <p>Which is the best way to keep a textarea always focused?</p>
  
  <p><code>&lt;textarea id="textarea"&gt;&lt;/textarea&gt;</code></p>
  
  <p>var textarea = document.getElementById("textarea");</p>
  
  <p>this:</p>
  
  <pre><code>  textarea.addEventListener("blur", function() {
      textarea.focus();
    });
  </code></pre>
  
  <p>or this:</p>
  
  <pre><code>textarea.addEventListener("blur", function() {
    setTimeout(function() {
      textarea.focus();
    }, 0);
  });
  </code></pre>
  
  <p>Don't tell about <code>autofocus</code> attribute.</p>