简要咨询咨询QQ网站导航网站搜索手机站点联系我们设为首页加入收藏 

javasript实现查看隐藏的密码框明文代码

来源:易贤网   阅读:1098 次  日期:2016-06-24 09:25:13

温馨提示:易贤网小编为您整理了“javasript实现查看隐藏的密码框明文代码”,方便广大网友查阅!

<html><head><title>密码的隐藏与显示</title>

</head>

<body bgcolor=#fef4d9><br><br>

<center>密码的隐藏与显示</center><br>

<center>

<table bordercolor=#cc0000 border=5 borderlight=green>

<tbody>

<tr>

<td align=middle><div align=center>效果显示</div></td>

</tr>

<tr>

<td align=middle>

<form name=forms action= method=post><span id=box>

<input type=password value=523654 name=password></span> <span id=click><a href=javascript:ps()>显示密码</a></span>

<script language=javascript>

function ps(){

if (this.forms.password.type=password)

box.innerhtml=<input type=html name=password size=20 value=+this.forms.password.value+>;

click.innerhtml=<a href=javascript:txt()>隐藏密码</a>}

function txt(){

if (this.forms.password.type=text)

box.innerhtml=<input type=password name=password size=20 value=+this.forms.password.value+>;

click.innerhtml=<a href=javascript:ps()>显示密码</a>}

</script>

</form></td></tr></tbody></table></center>

</body>

</html></td>

</tr>

</table>

更多信息请查看脚本栏目
点此处就本文及相关问题在本站进行非正式的简要咨询(便捷快速)】     【点此处查询各地各类考试咨询QQ号码及交流群
上一篇:用hta实现的远程桌面连接脚本
下一篇:win7创建wifi热点脚本分享
易贤网手机网站地址:javasript实现查看隐藏的密码框明文代码
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!