How do I automatically open the browse dialog of an input type=\"file\" when the page first opens?
This is completely impossible in Firefox.
In other browsers, you can:
document.getElementById('inputId').click();