javascript prompt for password (i.e. *******)

bookmarklet, javascript

Solution

You can create a floating div on the current page, with a form containing a password field.

Problem

I'm writing a bookmarklet and I need to be able to prompt the user for a "password". However, I don't want it to be in clear text on screen, so I cannot use prompt. Is there a masked alternative to prompt()? Any other suggestion?

Original source