js logo

 

Your password please, then click
Explanation What you need
If the password is "foo" You need to create a page named "foo.html", this page in the same directory as this "password.html" page. When the client clicks "GO" or presses enter , he will be directed to the page "foo.html"

The script

<script type="text/javascript">
function password(field){
window.location.href= field.toLowerCase()+'.html';
}
</script> >


The HTML

<form onSubmit="password(this.textfield.value); return false" action="" >
<input type="password" name="textfield" maxlength="10">
Your password please, then click
<input type="button" name="Button" value=" GO" onClick="password(this.form.textfield.value)">
</form>