*********This would go in the HEAD section between SCRIPT tags******* function isValid1(){ var fName = document.valid1.fname.value; var eMail = document.valid1.email.value; if(fName == ''){ alert('You must enter a name') return false; } if(eMail == ''){ alert('You must enter a email') return false; } } *******This would go in the BODY section between FORM tags******
Leave the fields blank and click "Done"

Name:
Email: