When clicking on the text box part of an <input type='file' /> in FireFox3, a file browsing window opens.
This doesn’t happen in IE7. You have to click the ‘browse’ button to open the file browsing window.
How can I prevent the file browsing window from opening in FireFox when a user clicks on the textbox area? I’d like it so it only opens when the button is pressed.
Obscure it with another element.
But don’t do this. It’s awfully brittle and will break in many circumstances.
I doubt your users would like it, though. It removes expected functionality from the browser, and doesn’t replace it with anything better. Or indeed anything at all.