That is because you do not have a "return" specified on the javascript line.
 
----- Original Message -----
To: Struts
Sent: Thursday, May 31, 2001 8:46 PM
Subject: Using Javascript to cancel submit?

Hello All,
 
Currently I'm working on a form, but before submit, I have an onSubmit() in my form tag that verifies they want to submit.  The problem is that with my confirmation javascript popup, whether the user selects "OK" or "Cancel", the form is still submitted.  Is there a way to prevent the form from submitting if the user selects "Cancel"?
 
 
Thanks in advance!
 
Steven

Reply via email to