Nonsense not to say, directly to everyone on dry goods, write a bad welcome to give comments.
The specific code looks like this:
function Hiddenpass (event)
{
var password0 = document.getElementById ("password0");
var password1 = document.getElementById ("Password1");
if (Event.keycode = =)
{
}
var keycode;
if (window.event)
{//IE
keycode = Event.keycode
} else if (Event.which)
{//Netscape/firefox/opera
keycode = Event.which
}
var Keychar = String.fromCharCode (keycode);
Password1.value = Password1.value + Keychar;
Password1.value = password1.value.substring (0,
password0.length);} function Clearpass ()
{
$ ("#password0"). Val ("");
$ ("#password1"). Val ("");
<li class= "ba" >
<label> password:</label>
<input type= "text" id= "password0"
onfocus= "Javascript:clearpass ();"
Onkeyup= "This.value=this.value.replace (/./g, ' * ')"
onkeypress= "Javascript:hiddenpass (event);" />
<input type= "hidden" id= "Password1" name= "Password1"/>
</li>
The above code content is small to share the password input box code, we hope to help!