Example code for verifying the password strength using Javascript

Source: Internet
Author: User

Today, with the development of web in the tutorial www.bkjia.com, many forums and bloggers have added the function of verifying the password strength during user registration. Recently, I received a letter from the webmaster asking the customer to compile some examples in this area. Today we will share a piece of instance code, as shown below:

<Html> <title> javascript password Strength Verification-help house LIEHUO.. NET </TITLE> <body> User input password security test <br> the help house provides you with a tutorial. For more tutorials: http://www.bkjia.com/<form name = form1 action = ""> input password: <input type = password size = 10 onKeyUp = pwStrength (this. value) onBlur = pwStrength (this. value)> <br> password strength: <table width = "217" border = "1" cellspacing = "0" cellpadding = "1" bordercolor = "# cccccc" height = "23" style = 'display: inline'> <tr align = "center" bgcolor = "# eeeeee"> <td width = "33%" id = "strength_L"> weak </td> <td width =" 33% "id =" strength_M "> medium </td> <td width =" 33% "id =" strength_H "> strong </td> </tr> </table> </form> </body> 

Tip: the code can be modified before running!

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.