Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 230
Jimvanz Avatar asked Oct 30 '09 08:10

Jimvanz


People also ask

How do I censor a password in HTML?

<input type = "password" > Thus the entered characters are masked or hidden. To make a textbox that can hide the entered characters, the type attribute of <input> element should be set to "password."

How do I change the HTML password?

Create your own font and use @font-face and font-family (and font-size ) for input[type="password"] . It should help to solve your problem. But... you must create font with replaced bullet and asterisk character. All character numbers in font may represent the same character.

In which form are the characters typed in the password field displayed?

The <input type="password"> defines a password field (characters are masked). Note: Any forms involving sensitive information like passwords should be served over HTTPS. Tip: Always add the <label> tag for best accessibility practices!

How do you mask a password in the input field in HTML?

Complete HTML/CSS Course 2022 To take password input in HTML form, use the <input> tag with type attribute as a password. This is also a single-line text input but it masks the character as soon as a user enters it.


2 Answers

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

Never say "it is impossible". You should find a hack for your problem.

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

(18C)

like image 167
18C Avatar answered Sep 28 '22 08:09

18C


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.

like image 27
Pete OHanlon Avatar answered Sep 28 '22 08:09

Pete OHanlon