Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Good, Simple Validation Script Re: Good, Simple Validation Script

#68125
BaylorRae
Member

When checking email addresses I use this.

Code:
function check_email() {
var email_field = document.form_name.email_field.value;

if( /b[w._-]+@[w-_.]+.[a-zA-z]{2,4}b/.test(email_field) ) {
return true;
}else {
return false;
}
}