ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Handling Multiple Submits
Subject:   another javascript solution
Date:   2003-04-09 06:36:58
From:   anonymous2
You can also use the onSubmit event in the FORM tag to call a validation method. Returning a false value from this method will stop the form from being submitted.


<form onSubmit="return checkForm();">