JavaScript – Email Validation script

var emailfilter=/^w+[+.w-]*@([w-]+.)*w+[w-]*.([a-z]{2,4}|d+)$/i

function checkmail(e){
var returnval=emailfilter.test(e.value)
if (returnval==false){
alert(“Please enter a valid email address.”)
e.select()
}
return returnval
}


If you would like this article please donate, this will keep us motivated!
Amount: Website(Optional):

One Response to “JavaScript – Email Validation script”

  1. streetwear Says:

    Perfect!Amazing!Super!Thank you very much

Leave a Reply

Security Code: