Hallo,
probiers mal so:
<html>
<head>
<script language="JavaScript">
<!--
function check(){
var Passwort = "passwort";
var Eingabe = window.prompt("Passwort eingeben !","");
if(Eingabe != Passwort)
{
document.location.href="fehler.html";
}
else
{
document.location.href="geheim.html";
}
}
// -->
</script>
</head><body onload="javascript:check()">
blabla
</body>
</html>
Gruß Julian!