Closed
Bug 18173
Opened 25 years ago
Closed 25 years ago
return true from form onsubmit is broken
Categories
(Core :: JavaScript Engine, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: tony.gorman, Assigned: mike+mozilla)
References
()
Details
A form which calls a javascript function from the onsubmit handler fails.
E.G
<form onsubmit="return jsFunc()">
even if jsFunc() merely returns true, the form is not submitted.
Reporter | ||
Updated•25 years ago
|
Summary: onsubmit action of forms is broken → return true from form onsubmit is broken
Reporter | ||
Comment 1•25 years ago
|
||
Test page as follows. This should work but doesn't. I am using a PC with
win98. Running win32 M10.
<HTML><HEAD><TITLE>Test Case</TITLE></HEAD><BODY>
<SCRIPT language=JavaScript>
function retCheck(fObj) {
return true;
}
</SCRIPT>
<FORM onsubmit="return retCheck()" target="whatever.htm" method="post"
name="moz"><INPUT type=SUBMIT value="Test1"></FORM>
</BODY></HTML>
Reporter | ||
Updated•25 years ago
|
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 2•25 years ago
|
||
Sorry, was working on a different bug and misread the causes. Was never a bug...
Comment 3•24 years ago
|
||
should be invalid, but to cut down on spam, vrfy fixed per reporter's comments
(testcase at URL given is no longer valid, btw)
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•