javascript prompt for password (i.e. *******)
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? You can create a floating div on the current page, with a form containing a password field. alternative: let the bookmarlet point to a particular web page. Get the password from the user on that page, and continue. This solution does not use javascript at all, as you may have noticed. If you really insist on using javascript, you will have to create a new window using