Script Categories













Forms >>> Email Validation Basic.

This is a simple e-mail address validation script. While it is not too sophisticated, it does provide the basic validation function.

E-mail Address:

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">
/* Visit http://www.yaldex.com/ for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function 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>
<form onSubmit="return checkEmail(this)">
E-mail Address:<br>
<input type="text" name="emailAddr">
<br>
<input type="submit" value="Submit">
<input
type="reset" value="Reset">
</form>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.



Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).

Bitcoin Dice Site . indy lend reviews


©