+ 3
How to set password echo char as * instead of ● in html form field?
I want to display password as * when entered in html form field. How to make that?
14 odpowiedzi
+ 8
It's web client-specific, you can try to enforce it so that it looks the same in every browser, but no 100% guarantee. Take a look at this SO thread:
https://stackoverflow.com/questions/6859727/styling-password-fields-in-css
+ 8
Another way to do it is to write custom password input with no <input> element but <div> ( or any other one ), handling yourself output and storing characterd typed by user on a virtual keyboard, with the advantage of avoiding eventual key logger hack...
Example of such implementation easily adaptable:
https://code.sololearn.com/W4Qam61Iz8V3/?ref=app
+ 7
ughhhh....my research led me to that exact same page that Kuba provided.
+ 7
found this tho
https://jsfiddle.net/estelle/8WpNg/
+ 7
omg.....
i was aware of such solution but was afraid to suggest because of the complexity of writing an entire virtual keyboard....
kudos vishp
kudos 👏👏👏
+ 6
<input type="password" />
+ 6
yeah....my bad xD
didn't read question right
brb
+ 5
np :)
+ 5
@Burey:
Thanks :)
I'm proud to impress a good coder like you ;)
+ 5
for the love of god Manchunkonda give vishp best answer already 😂
+ 4
Wow, @visph at his best! :)
+ 2
Thank you Kuba & Burey..
+ 2
that is awesome vishp
+ 1
@Burey..
when we use that our password is displayed ●
but, I wanted to display as * When password is entered..