javasript實現(xiàn)查看隱藏的密碼框明文代碼
來源:易賢網(wǎng) 閱讀:1464 次 日期:2016-06-24 09:25:13
溫馨提示:易賢網(wǎng)小編為您整理了“javasript實現(xiàn)查看隱藏的密碼框明文代碼”,方便廣大網(wǎng)友查閱!

<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>

更多信息請查看腳本欄目
易賢網(wǎng)手機網(wǎng)站地址:javasript實現(xiàn)查看隱藏的密碼框明文代碼
關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網(wǎng)