<HTML><Head><title>"Recommended" JS Control text box password Display/Hide function _ Web code station (www.6a8a.com)</title><style>Body,input{Font:Menu}</style></Head><Body><formMethod= "POST"Action= "Addcheck.asp"name= "Forms"><spanID=box><inputtype= "Password"name= "Password"size= " the"value= "Www.6a8a.com"></span><spanID=click><ahref= "Javascript:ps ()">Show password</a></span><Scriptlanguage= "JavaScript">functionPS () {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 () \" > Hidden password </a>"}functiontxt () {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 () \" > Show password </a>"}</Script></form><BR/><P><ahref= "Http://www.6a8a.com">Web Code Station</a>-The most professional Web page code download site-committed to the Chinese webmaster to provide quality page code!</P></Body></HTML>
JS control password Display/Hide function in text box