Page 1 of 1

getting a password from a prompt() box

Posted: Thu Nov 21, 2002 1:42 pm
by waskelton4
I'm using a prompt box to confirm a users password when they make changes to thier profile.. but i'd like to not be able to read the password in the prompt box. (i.e. print out *'s instead of the real password)

is there a way to accomplish this?

or even... is this a good idea? would it be more secure to accept the password a different way??


Thanks for your help..

Will

Posted: Thu Nov 21, 2002 2:40 pm
by PingLeeQuan
You can use the html type of password (<input type = password name="pwd")

or you can use Javascript event handler (OnKeyPressed) and capture teh event and incrept using md5 or any other tech.

--hope that helped