Closed
Bug 98186
Opened 25 years ago
Closed 24 years ago
change event should be fired before submit event
Categories
(Core :: DOM: Events, defect)
Tracking
()
People
(Reporter: hjtoi-bugzilla, Assigned: joki)
Details
From an email:
onchange vs. onsubmit. If you change an input in a form and then
submit, the onchange event should fire before the onsubmit does. This
gives you a chance to validate the data before it is exported. In this
sample, onsubmit fires first, which is wrong.
<HTML><HEAD><TITLE>Test 1</TITLE></HEAD>
<BODY>
<form onsubmit="alert('submit');return false;">
<input type="text" name="a" onchange="alert('onchange');return true;">
Submit <input type="submit" name="Submit" value="Submit">
</form>
</BODY>
</HTML>
NS4 and IE5.5 do the onchange first. NS6.1 does the onsubmit first.
| Assignee | ||
Comment 1•24 years ago
|
||
duping on 99350. That bug is newer but has more description.
*** This bug has been marked as a duplicate of 99350 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•