1. Home
  2. Computing & Technology
  3. JavaScript

Email Address Validation

1. Introduction and Sample

clr gif

There will almost certainly be times when you want to request for an email address to be entered on one of your forms. There is no easy way to validate that the email address that is entered actually exists and certainly no way to validate that it belongs to the person that entered it but we can at least validate that the email address is in an acceptable format that is recognisable as an email address.

The following is a working example of the email validation script:


To be able to add this validation to your form fields you will need to obtain the script.

Note that the script and the description of how to use it are copied from the "Ask Felgall" website with the permission of the copyright owner.

Explore JavaScript
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. JavaScript

©2009 About.com, a part of The New York Times Company.

All rights reserved.