as proposed in a previous thread, alerts can't be changed, but can you make a prompt so that whatever you type in it appears just like it would in the password type of inputs?
in order to mask input in a "prompt" you would need to simulate by opening a new window with an input type=password. you could then pass the input value back to the opener window if necessary.
* use of a new window for this operation would not halt script execution as a real prompt() would.
if you're only concerned about IE compatibility, use showModalDialog(), which will halt execution.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.