I'm using onSubmit() to validate a form, but it goes on to the next page no matter what I return.
My form:
<form name="OrderForm" onSubmit"isReady()" action="go_on.html">
function isReady(){
if(isEmail(document.OrderForm.email.entry) == false) {
alert("Please enter a valid email address"
return false;
}
Even though it catches invalid Emails and puts up the alert (and since I never return true, it should NEVER submit), it always goes on and submits the "action" page. This is in Netscape 4.72-1
My form:
<form name="OrderForm" onSubmit"isReady()" action="go_on.html">
function isReady(){
if(isEmail(document.OrderForm.email.entry) == false) {
alert("Please enter a valid email address"
return false;
}
Even though it catches invalid Emails and puts up the alert (and since I never return true, it should NEVER submit), it always goes on and submits the "action" page. This is in Netscape 4.72-1