PDA

View Full Version : PASSWORD issue


paul_mills
04-01-2005, 09:27 AM
I have the following script.....

<SCRIPT language="JavaScript"><!--

function GateKeeper() {
var password = prompt("Password required:", "");
if (password) { this.location.href = password + ".html"; }}

//--></SCRIPT>

... How can i modify this script so that users will only view asterisks(****) when they type in a password. Is it possible or are there any alternative?

Thanks

RaZeN
04-01-2005, 09:36 AM
i think such problem can be solved by using following HTML codes <input> with type as password rather than 'text'
<from action='' method=''>
username:<input type='text' size=''>
Password:<input type='password' size=''>
<input type='button' value='login' onclick='yourjs_fxn goes here'>
</from>

Brandoe85
04-01-2005, 09:38 AM
Don't double post please:
http://www.codingforums.com/showthread.php?p=291770#post291770