»
EnglishFrenchVietnamese

Print - Mail Validator - JavaScriptBank.com

Full version: jsB@nk » Email » Mail Validator
URL: https://www.javascriptbank.com/mail-validator.html

Mail Validator © JavaScriptBank.comA simple JavaScript to check the mail validation.

Full version: jsB@nk » Email » Mail Validator
URL: https://www.javascriptbank.com/mail-validator.html



JavaScript
<SCRIPT LANGUAGE="JavaScript"><!-- Beginfunction checkEmail(myForm) {if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailAddr.value)){return (true)}alert("Invalid E-mail Address! Please re-enter.")return (false)}//  End --></script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form onSubmit="return checkEmail(this)">E-mail Address:<br><input type="text" name="emailAddr"><p><input type="submit" value="Submit"><input type="reset" value="Reset"></form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->