Forum Moderators: open
The function to validate an email address is easy and I know about onSubmit="" to make that function run before the form is submitted. But it just pops up an alert saying to enter a valid email address and then continues to submit the form!
How do I CANCEL the form submission if the email address entered is INVALID so the user can then enter a valid one?