Home  >  Q&A  >  body text

Change the symbols displayed in HTML password fields

Is there a way to change the asterisks (*) or bullets () that appear in HTML password fields in some browsers?

P粉135292805P粉135292805338 days ago670

reply all(2)I'll reply

  • P粉316110779

    P粉3161107792023-10-18 09:12:49

    Create your own font and use @font-face and font-family (and font-size) as input [type= "password"]. It should help solve your problem. But... you have to create the font with replaced bullet and asterisk characters. All character numbers in a font may represent the same character. Use Google to find free programs to edit vector fonts.

    Never say "This is impossible". You should find a solution to your problem.

    Characters to replace with your symbol (available in Chrome, Firefox, and MSIE): 26AB, 25E6, 25CF, 25D8, ​​25D9, 2219, 20F0, 2022, 2024, 00B7, 002A.

    (18C)

    reply
    0
  • P粉402806175

    P粉4028061752023-10-18 00:09:12

    You cannot change password mask characters in standard password fields. You could fake it using a textbox, but this would result in a weaker security model since you wouldn't get the protection from the password textbox. BTW, it's generally not a good idea to change the behavior of a project like this, since users are already used to one form of masking, and you'll be introducing a different one - if there's no good reason to do so, I'd avoid it.

    reply
    0
  • Cancelreply