title: Javascript focus on browse button of file input
body: <p>I am trying to focus on the browse button of the file input control.</p>
  
  <p>so I have something like</p>
  
  <pre><code> &lt;input type="file" name="upload" id="upload" &gt;
  </code></pre>
  
  <p>and in javascript I have</p>
  
  <pre><code>document.getElementById("upload").focus();
  </code></pre>
  
  <p>but the focus remain on the text field and comes to browse button only after i hit tab.
  Is there a way that I could write a script to set the focus on the browse button?</p>
  
  <p>Thanks for your help!</p>