Hey Guys,
The validation code that i have on my page is:
function validateForm() {
with (document.contactform) {
var alertMsg = "The following REQUIRED fields\nhave been left empty:\n";
if (name.value == "") alertMsg += "\nName";
if (email.value == "") alertMsg += "\nEmail";
if (message.value == "") alertMsg += "\nMessage";
if (alertMsg != "The following REQUIRED fields\nhave been left empty:\n") {
alert(alertMsg);
return false;
} else {
return true;
}
}
}
Also i have added the onsubmit="return validateForm()"
into my form section and nothing seems to be working. you can view the source page at http://obliqueinteractive.com/contact.html
Any help will be greatly appreciated Thanks