Iemand gaf mij een heel korte script om een pagina te beveiligen; ik heb er een link van gemaakt naar een bestand, maar het werkt niet. Wie kan mij zeggen wat er fout is. De website heeft 3 frames.
Dit is de script:
<SCRIPT TYPE="text/javascript LANGUAGE="JavaScript">
<!--
function go() {
window.location.href = "http://www.mijnsite.nl/" +
document.formName.passwordName.value + '.htm';
return false;
}
//-->
</SCRIPT>
<body>
<FORM NAME="formName" onSubmit="return go()">
Enter Password: <INPUT TYPE="password" NAME="passwordName " VALUE="" SIZE=8>
</FORM>
gr. Jato
Dit is de script:
<SCRIPT TYPE="text/javascript LANGUAGE="JavaScript">
<!--
function go() {
window.location.href = "http://www.mijnsite.nl/" +
document.formName.passwordName.value + '.htm';
return false;
}
//-->
</SCRIPT>
<body>
<FORM NAME="formName" onSubmit="return go()">
Enter Password: <INPUT TYPE="password" NAME="passwordName " VALUE="" SIZE=8>
</FORM>
gr. Jato