Forum Moderators: open

Message Too Old, No Replies

e-mail control with Javascript

         

Gabriele

5:45 pm on Jun 16, 2005 (gmt 0)

10+ Year Member



Hi all!
I'm just a beginner in this language, so here's my simple question: how can I create a Javascript e-mail control?
For istance, to check if an e-mail is valid or not. How can I write an e-mail using Javascript? Thanx! cheers :)

Gabriele

Dijkgraaf

10:41 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think the best that you will be able to achieve in JavaScript is to check that the e-mail address is in the form of *@*.* Is that what you want? Then do a search for the following keywords.
regexp javascript email validation

Actually testing to see whether that e-mail address actually exists is outside of JavaScripts capabilities I believe.

Gabriele

9:32 am on Jun 17, 2005 (gmt 0)

10+ Year Member



Can you show me some useful examples? thanx! :)

Dijkgraaf

10:31 pm on Jun 17, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do a search for the keywords regexp javascript email validation in your favourite search engine, and I'm sure you will find plenty of examples :-)

Gabriele

10:06 am on Jun 18, 2005 (gmt 0)

10+ Year Member



T-h-a-n-x! ^_^ :)