Can nayone tell me what does this javascript code do...
Thanx.
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: