Chapter 7: Form Handling

Return to Chapter 7

 

To use this script on your own page, click in the text area below, select all, and copy to grab the script. Then, just paste into your own page — and you're done.

Validating Email Addresses

See it run: Validating Email Addresses

Script 7.15

This JavaScript scans through the text within an e-mail field on your form, and ensures that you get properly formed e-mail addresses.