Javascript Help

Status
Not open for further replies.

REY619

Ambassador of Buzz
Can nayone tell me what does this javascript code do...
Code:
<script language="JavaScript">

function passwd()
{
var x="a" + "k";
var base = "Fqc";
var code="";
var end = "";
for (var z=0;z<base.length;z++)
{
code=code+String.fromCharCode(base.charCodeAt(z)+z);
}
end = code + x;
if(document.check.passwort.value==code)
{
document.write("Access Granted, please type it in and press submit.");
}
else
{
document.write("Access Denied.");
}

}
</script>

Thanx.
 
Last edited:

ahref

In the zone
this code check the password entered and validate whether it is correct or not. If correct write on browser Access Granted, please type it in and press submit
if wrong write on browser Access Denied.

You can find what the password is through above code easily.
 
Status
Not open for further replies.
Top Bottom