Closed Bug 339187 Opened 19 years ago Closed 19 years ago

No way to programatically invoke "Browse..." button for <input type="file"/>

Categories

(Firefox :: General, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 36619

People

(Reporter: jesse, Unassigned)

Details

User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/418 (KHTML, like Gecko) Safari/417.9.3 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.3) In JavaScript, there is no way to programatically invoke the "Browse..." button that is rendered with an <input type="file"/> tag. Invoking the button reveals the operating system file choose dialog. Internet Explorer allows this button to be invoked with the click() method of the input DOM element. Reproducible: Always Steps to Reproduce: 1. in HTML: <input id="fu" type="file"/> 2. in JavaScript: document.getElementById("fu").click() Actual Results: no file dialog appears Expected Results: file dialog should appear
Blocks: tibco
*** This bug has been marked as a duplicate of 36619 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
Blocks: tibco
No longer blocks: tibco
You need to log in before you can comment on or make changes to this bug.