title: Autofocus (even focus) in Popup page?
body: <p>After many times of attempts, I found out that no matter what I do:</p>
  
  <pre><code>function foo(){
       $("input").focus();
  }
  &lt;body onload="foo();"&gt;
  
  &lt;input type="text" autofocus tabindex="1"&gt;
  </code></pre>
  
  <p>I even used a hidden button that set focus on it and I programmitically click on it and It won't even focus on it in the popup page, and it is driving me <em>crazy</em>. I checked the code many times and I couldn't find a single error. So I really want to know if there's a actual possible way to achieve this, since this seems just like simple problem.</p>