
|
JavaScript Email Validation Script
Try our free javascript email validation script.
You can download the source, a tester and the README here. The dowload includes the javascript
email validation script in a .js file, which you can reference from
your own HTML form. The following instructions are included in the
readme when you download the javascript email address validator.
If you have any questions, or problems with our javascript
email validation script, simply fill out our online contact
form and someone will get back to you within 1 business day.
For faster response, visit our online
support forum, and post your question.
Improvements for 2007.
The javascript email validator now is checking for the occurance
of two consecutive periods (..) in the email address. Email addresses
found to contain this pattern are considered invalid.
Also, the javascript email validation script now checks to ensure
that the email address does not end with a period. Email addresses
ending with a period are considered invalid.
Instructions:
Unpacking and using the tester:
- Unzip the javascript email validation script
file to any directory.
- Open the file "validEmailTest.html" in your favorite
browser
- Enter an email address and click "validate email" button
Using the javascript email validator script in your own web pages:
- Extract the "isValidEmail.js" to your web page directory
- Include the "isValidEmail.js" file in the "<head>"
section of the page you wish to use it on.
<head>
<script language="javascript" src="./isValidEmail.js">
</script>
</head>
- Call the javascript email validation function
(isValidEmail) as required. The recommended approach is to call
it from a single "validate" method that validates your
entire form contents, and display a proper error message. See
README for more details.
Steve Szettella & the 4word systems team
|