[thelist] Playing with the Javascript Prompt

Aylard JA (James) jaylard at equilon.com
Thu Nov 30 17:26:19 CST 2000


Henry,

>      I'm working on a Javascript/HTML page with password protection.
> I would like it, when the user is entering the password, to have what is
> typed into the Javascript prompt appear as asterisks (so that someone
> looking over the person's shoulder doesn't see the actual password typed
> in).  Is this possible in Javascript?  Also I would like to be able
> to adjust the size, background color, etc. of the prompt.

	Try:

<input type="password">

	To format it, use CSS (this will work on IE4+ and Netscape 6).

hth,
James Aylard




More information about the thelist mailing list