I have some code on a form. onSubmit check for email address and if it doesn't find one returns false to prevent the form submitting. The problem is that when you click ok or cancel on the alert box "false" or "true" pops up as an alert. How do I stop this?
function email_check()
{
if(document.input.field_1a.value == ""
{
alert(confirm("You must enter your email address");
goFocus();
return false;
}
else {
return true;
}
}
Thanks
Jon
function email_check()
{
if(document.input.field_1a.value == ""
{
alert(confirm("You must enter your email address");
goFocus();
return false;
}
else {
return true;
}
}
Thanks
Jon