Closed Bug 18173 Opened 25 years ago Closed 25 years ago

return true from form onsubmit is broken

Categories

(Core :: JavaScript Engine, defect, P3)

x86
Windows 98
defect

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.
Summary: onsubmit action of forms is broken → return true from form onsubmit is broken
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>
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Sorry, was working on a different bug and misread the causes. Was never a bug...
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.