Here is two ways

<!-- first option-->

function checkemail(str){
  var filter=/^.+@.+\..{2,3}$/
  return (filter.test(str))
  }
<!-- first option-->



<!-- second option-->

var foundAt = document.myForm.eMail.value.indexOf("@",0)

if (foundAt < 1 && okSoFar) {

okSoFar = false

alert ("EMail address should contain an @ character!")

document.myForm.eMail.focus()

}
<!-- second option-->
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Dan Stein
Sent: Monday, June 03, 2002 5:48 PM
To: Multiple recipients of list witango-talk
Subject: Witango-Talk: Email validation

Anyone have a snippet to validate email address when it is entered in a
form
make sure it is valid format.


-- 
Dan Stein
Digital Software Solutions
799 Evergreen Circle
Telford PA 18969
Land: 215-799-0192
Mobile: 610-256-2843
FMP, WiTango, EDI,SQL 2000
[EMAIL PROTECTED]
www.dss-db.com


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body


________________________________________________________________________
TO UNSUBSCRIBE: send a plain text/US ASCII email to [EMAIL PROTECTED]
                with unsubscribe witango-talk in the message body

Reply via email to