Add the following code to your javascript:
function makePasswordHidden() { document.getElementById("password").setAttribute("type", "password"); }
Change password entry:
<input id="password" name="password" class="input_text" type="text" value="Password" onfocus="makePasswordHidden();">
What this does is make the input element "password" and the value is updated so that it is hidden. If you want value = "Password" to be visible, if the field is left blank, add the following javascript function:
function makePasswordShown() { document.getElementById("password").setAttrivute("type", "text"); }
And add the following data to your password:
onblur="if (this.value=='') makePasswordShown(); if (this.value=='') this.value='Password';"
Levi meredith
source share