title: Can't set focus to input in chrome extension
body: <p>For some reason I can't set focus on a texbox I have in my popup.html. Here's what I've tried so far:</p>
  
  <p>popup.html:</p>
  
  <pre><code>&lt;input type="text" id="textbox" name="aName" value="" placeholder="blah" /&gt;
  </code></pre>
  
  <p>popup.js:</p>
  
  <pre><code>//Attempt 1
  $(function() {      
      $('#textbox').focus();
  });
  
  //Attempt 2
  setTimeout(function() { $('#textbox').focus(); }, 1000);
  </code></pre>
  
  <p>I also tried without javascript, using just the autofocus property:</p>
  
  <pre><code>&lt;input type="text" id="textbox" name="aName" value="" placeholder="blah" autofocus /&gt;
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/9646772/chrome-extension-popup-textarea-focus%22asas%22">But none of this worked...</a> Any ideas?</p>
  
  <p>Notes:</p>
  
  <ul>
  <li><em>popup.js is being called, if I put console.log() I get the output</em></li>
  <li><em>The popup is fired by an icon we have next to the omnibar (default_icon)</em></li>
  </ul>