
October 1st, 1999, 03:45 AM
|
|
Guest
|
|
Posts: n/a
Time spent in forums:
Reputation Power:
|
|
|
For form validation it is better to to make a form-verification function that returns true if there are no errors, and returns false if there are any (as well as alerting the user about the mistake). For a parameter to the function you can use form itself.
Then just put this function in your <FORM> tag, like:
<FORM action=... method=... onSubmit="return verify(this);">
|