Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Java script for password protection webpage

  Asked By: Howard    Date: Aug 13    Category: Java    Views: 828
  

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>

Share: 

 

4 Answers Found

 
Answer #1    Answered By: Zobebah Mizrachi     Answered On: Aug 13

What do you want the javascript to do?

 
Answer #2    Answered By: Chuong Tran     Answered On: Aug 13

Javascript and Java are two different things. Have you tried a Javascript group?

 
Answer #3    Answered By: Indie Williams     Answered On: Aug 13

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 #4    Answered By: Kuhlbert Schmidt     Answered On: Aug 13

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: