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 to convert numbers to strings using javascript?
Why do you need javascript?
What is output of undefined * 2 in javascript?
Describe javascript and vbscript.
What is escape & unescape String functions in JavaScript?
What is event bubbling in JavaScript?
Difference between '=', '==' and '===' operators?
How host objects are different from native objects in javascript?
Define event bubbling?
Why it is not advised to use innerhtml in javascript?
How to shift and unshift using javascript?
What creates scope in javascript?
Can you access Cookie using javascript?
Explain few difference between null, undefined or undeclared javascript variable?
Is javascript case sensitive?