htmlinputpasswords

Changing the symbols shown in a HTML password field


Is there any way to change the asterisks (*), or in some browsers a bullet (), that appears in password fields in HTML?


Solution

  • You can't change the password masking character in the standard password field. You can fake it with a textbox, but it makes for a weak security model because you don't get the protection you do from the password textbox. As a side note, it's generally not a good idea to change the behaviour of items like this because users have become used to one form of masking, and you will be introducing a different one - if there's no good reason to do this, I'd avoid it.