getting a password from a prompt() box

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
waskelton4
Forum Contributor
Posts: 132
Joined: Mon Sep 09, 2002 6:42 pm

getting a password from a prompt() box

Post 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
PingLeeQuan
Forum Commoner
Posts: 58
Joined: Tue Sep 03, 2002 8:08 am

Post 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
Post Reply