Practice




Male
Female

function ValidateEmail(inputText) { var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/; if(inputText.value.match(mailformat)) { document.form1.text1.focus(); return true; } else { alert("You have entered an invalid email address!"); document.form1.text1.focus(); return false; } } - See more at: http://www.w3resource.com/javascript/form/email-validation.php#sthash.HORUEX3h.dpuf

No comments:

Post a Comment