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
How do Javascript primitive/object types passed in functions?
Explain how can you submit a form using JavaScript?
Is javascript event driven?
How many data types are there in javascript?
Why is javascript not oop?
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?
How to create an input box?
How do I use javascript to password-protect my web site?
What are the application of javascript?
How do you know if a set of points is a function?
Where do I write javascript code?
Explain what is javascript? List some data types supported by javascript?
What does 3+4+"7" evaluate to?
What are events in javascript?
What is data types in javascript?