title: Auto Focus in Google Chrome extension
body: <p>I made a simple Chrome extension - search with a form.</p>
  
  <p>When I open the extension, there is no default focus on form, but it requires additional click.</p>
  
  <p>Focus is suppose to happen on popup.html form.</p>
  
  <p>Now JavaScript <code>.focus()</code> method didn't work, Is there any other way to set default focus for Chrome extensions?</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;input type="text" id="mydata"  /&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code>document.getElementById('mydata').focus();
  </code></pre>