Click to See Complete Forum and Search --> : Hide input to prompt


jkusar
02-07-2003, 09:37 AM
I am trying to use a javascript prompt to verify a user password. But when data is typed into the box, it shows up in clear text. Is there anyway to get a prompt that only shows *'s instead of what is actually typed?

Thanks.

pyro
02-07-2003, 09:44 AM
First of all, you do realize that a javascript password isn't even the least bit secure?

If so, and you still don't care, then you can create <input type="password"> field to hide entered data. It's not a prompt, but if you want it to look more like a prompt, popup a new window, with no toolbars, etc, and insert your for there.

jkusar
02-07-2003, 09:54 AM
Yes, I understand that it's not secure. I'm not worried about it being captured since it's only across a local network. But I just don't want someone looking over the shoulder of the person typing to be able to see it. If necessary, I can create a popup form, but I was hoping to do it with javascript. Is there a way to set the font that is used in the prompt box? Perhaps I could just set it to something like WingDings and then no one will be able to read it.

pyro
02-07-2003, 10:22 AM
As far as I know, it is not possible to change the font of a prompt.