I use this js to display the default password when the user clicks on it, automatically clears the default value if the user deselects without entering the default value that appears again.
I used it for all my fields, but obviously for a password it is more complicated! :)
How do you do this?
<input type="password" onblur="this.value=!this.value?'Password':this.value;" onfocus="this.select()" onclick="if (this.value=='Password'){this.value='';}" name="pwd" id="user_pass" class="input" value="Password" size="20" tabindex="20" />
user796443
source share