Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adjusting an alert

Status
Not open for further replies.

greelmo

Programmer
May 16, 2003
89
US
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?
 
greelmo,

yes, with caveats:

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.



=========================================================
try { succeed(); } catch(E) { tryAgain(); }
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top