Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change password char in HTML

Tags:

html

can I change password char, in password-box in HTML. I want to change it to ■

like image 724
Javed Akram Avatar asked Nov 23 '10 14:11

Javed Akram


2 Answers

As far as I know, this can't be done. The password field is rendered natively by the browser.

You could probably build a JavaScript-based workaround, but that would not be as secure, break auto-completion and/or the browser's internal password management, and have other side-effects.

If at all possible, I would stick with the browser's rendering.

like image 130
Pekka Avatar answered Oct 13 '22 12:10

Pekka


That is controlled by the respective browser so as far as I know, it's not possible. You would have to come up with some out of the box solution but risking security, it's probably not worth it.

like image 26
Gabe Avatar answered Oct 13 '22 11:10

Gabe