I just joined, I'm a starter/beginner with Java scripts. I'm looking
for a good working Java script for password protection for a webpage.
If possible with explanation in the sideline, so I can study what
all the functions mean and do.
I have found this script, but it doesn't work properly! Can you see
what's wrong with it? Some names in the script are Dutch.
<head>
<script language="JavaScript">
<!-
function wachtwoord()
{
location.href="geheim/"+
document.pword.pwd.value + "vertrouwelijk.stm";
}
//->
</script>
</head>
<form name="pword">
Wachtwoord invoeren:
<input type="password" name="pwd" size="10" maxlength="10">
<input type="button" value=" Ok" onClick="wachtwoord()">
</form>