title: Trigger a file input to open via javascript
body: <p>So I have an input, something like this:</p>
  
  <pre><code>&lt;input type="file" id="file" /&gt;
  </code></pre>
  
  <p>I want to get the file open dialog to popup via javascript. I have tried things like this:</p>
  
  <pre><code>$('file').click();
  </code></pre>
  
  <p>(that's assuming I'm using something like prototype/mootools/jquery). However, this doesn't seem to do anything. Is there anyway I can trigger the click event for the file input without the user being forced to interact with the input directly?</p>