Simply click inside the window below, use your cursor to highlight the script, and copy (type Control-c or Apple-c) the script into a new file in your text editor (such as Note Pad or Simple Text) and save (Control-s or Apple-s). The script is yours!!!
Thanks to everyone who contributed, even if they don't know they did.
//Thanks to all the people at the www.devshed.com forums
//Finally, very special thanks to http://www.xs4all.nl/~ppk/js/intro.html for their nice text selection script (hey, im a newb :))
//which made this script so much better by taking away the prompt boxes, and replacing them with simply
//selecting the text (well in IE anyway). - Short_Rz
A script that closely examines the content of a form box to ensure that the user entered a valid email address. If not, the form submition is canceled, and the surfer prompted to re-enter a valid address. The script makes the following assumptions regarding what a valid email address is:
Joining mailing list will entitle you
to receive occasional emails informing you of news and
updates to the site and any special offers that may be
of interest to you.