Tim Blair wrote:
Its a bit long winded, but take a look at this article on styling a file input.- see footer for list info
Hello,
Does anyone know how to use JavaScript to simulate a click on the "Browse..." button of a file upload form field?
In IE I can use something like document.myForm.myFile.click() which will do the job and pop open the file browse window, but this doesn't work in Firefox (no error, just doesn't do anything).
Any ideas?
http://www.quirksmode.org/dom/inputfile.html
Hope it helps
Stephen