Jump to content

check if valid email


bedomon

Recommended Posts

hi allI have this script to check if the email is valid but it don't work :var arobase = document.formulaire.indexOf("@");var point = document.formulaire.lastIndexOf(".");var espace = document.formulaire.indexOf(" "); if (!((arobase != -1) && (arobase != 0) && (point != -1) && (point > arobase +1) && (point < document.formulaire.getElementById("eMail").length - 1) && (espace == -1))) { return false; }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...