ITeye博客

js 验证密码强度

java_true · 2011-09-27 15:25 · Web前端 · Markdown

<form name="form1" action="">
    输入密码:<input type="password" size="10" onkeyup="pwStrength(this.value)" onblur="pwStrength(this.value)">
    <br>
    密码强度:
    <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">
                弱</td>
            <td width="33%" id="strength_M">
                中</td>
            <td id="strength_H" style="width: 33%">
                强</td>
        </tr>
    </table>
</form>

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。