Give code Email Checking

Answer Posted / bharani kumar

var ree;
ree=/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(ree.test(document.formname.txt_email.value)==false){
alert("Enter valid email id");
document.formname.txt_email.value = "";
document.formname.txt_email.focus();
return false;
}

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do Javascript primitive/object types passed in functions?

513


Explain how can you submit a form using JavaScript?

494


Is javascript event driven?

480


How many data types are there in javascript?

501


Why is javascript not oop?

487






What does the term sticky session mean in a web-farm scenario? Why would you use a sticky session? What is the potential disadvantage of using a sticky session?

507


How to create an input box?

539


How do I use javascript to password-protect my web site?

490


What are the application of javascript?

485


How do you know if a set of points is a function?

459


Where do I write javascript code?

517


Explain what is javascript? List some data types supported by javascript?

474


What does 3+4+"7" evaluate to?

476


What are events in javascript?

508


What is data types in javascript?

499