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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prompt with password masking

Status
Not open for further replies.

livezone

MIS
Jan 17, 2003
81
CA
Hi,

Is it possible to change the input on prompt to be a password character like * instead of original characters

e.g. When the scipt below will execute it will prompt you to type something, can the input words be masked as **** instead of orginal characters.

<Code>
<SCRIPT language="JavaScript">
<!--hide
var yourname= prompt('Please enter your password', ' ');

if ( yourname=="abc") )
{
// Let it go
}

//-->
</SCRIPT>
</code>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top