This Javascript code will test that the supplied email address is in the correct syntax/format ie [email protected], [email protected] etc. This does NOT validate that the supplied email address is an actual email address that can receive email, just that the supplied email address is in the correct syntax/format.
Test this for yourself. Enter an email address in the textbox below and click the Email Syntax Valid
button.
Feel free to right click this web page and view the source code to see how the validate email Javascript code works.