Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java script for password protection webpage

  Asked By: Bryant    Date: Jan 16    Category: Java    Views: 754
  

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>

Share: 

 

3 Answers Found

 
Answer #1    Answered By: Eamon Jones     Answered On: Jan 16

What do you want the javascript to do?

 
Answer #2    Answered By: Rachael Ferguson     Answered On: Jan 16

Well, I wanted to make a secure webpage  which only can be reached
through input of a password. Just from a normal webpage through a
link to a webpage with a javascript which controls the given
password. If the password  is correct, the user is automatically
linked to a secure webpage. If the password isn't correct you are
redirected to the indexpage. Is this possible to make?

 
Answer #3    Answered By: Muhammad Evans     Answered On: Jan 16

Not in any way that is secure.............

 
Didn't find what you were looking for? Find more on Java script for password protection webpage Or get search suggestion and latest updates.




Tagged: