I have an external js file to validate a form and it works in IE and
Opera, but not Mozilla Firefox.
In Mozilla Firefox, the javascript console sasys "SearchForm" is not
defined in the second line
function Valid() {
if ((SearchForm.FirstName.value == "") && (SearchForm.LastName.value
== "") && (SearchForm.Phone.value == "") && (SearchForm.Dept.value ==
"%")) {
alert("Please enter criteria before submitting.");
SearchForm.FirstName.focus();
return false;
}
else if (SearchForm.Company.value == "") {
alert("Please select a company to search by.");
SearchForm.Company.focus();
return false;
}
else
SearchForm.submit();
}
Any ideas?