JS e-mail QQ number MSN Verification code

Source: Internet
Author: User

Email email Verification

if (document.regform.u_email.value.length==0) {
Alert ("Hint: please fill in your email address");
Document.regform.u_email.focus ();
return false;
}

else if ((Document.regform.u_email.value.indexof ("@") <0) | | (Document.regform.u_email.value.indexof (":")!=-1))
{
Alert ("Hint: you fill out the email is invalid, please fill in a valid email");
Document.regform.u_email.focus ();
return false;
}

QQ Number Verification Code
if (document.regform.u_qq.value.length!=0) {

if (!checkifnumber (Document.regform.u_qq.value)) {
Alert ("Hint: QQ number format Error!") ");
Document.regform.u_qq.focus ();
return false;
}

MSN Authentication Code

     if (document.regform.u_msn.value.length!=0) {
           if ((Document.regform.u_msn.value.indexof ("@") <0) | | (Document.regform.u_msn.value.indexof (":")!=-1))
                {
                          alert ("Hint: You fill out the MSN is invalid, please fill out a valid MSN");
                         Document.regform.u_msn.focus ();
                         return false;
               }
 }
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.