Closed
Bug 272248
Opened 21 years ago
Closed 21 years ago
javascript click method has no effect on upload button means input type=file
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: mi.felden, Assigned: bugzilla)
Details
User-Agent: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Javascript code can emulate a real click on a forms button by calling the click
function. Example: document.forms[0].button.click()
Only if it is an upload button nothing happens. Change the type="file" property
to another value, maybe type="reset" results the expected click
Reproducible: Always
Steps to Reproduce:
1. Write a HTML page with an upload button within a form
You can add onclick="javascript:alert('clicked')"
2. Enter javascript:document.forms[0].button.click
Actual Results:
No reaction
Expected Results:
Button should be clicked, the alert should pop up
Comment 1•21 years ago
|
||
*** This bug has been marked as a duplicate of 36619 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•