hi,
ich möchte einen teil meiner homepage durch ein passwort sichern. wie erreiche ich, daß nach eingabe des passwortes, die seite in einem anderen framefenster geöffnet wird. bis jetzt wird die "geheime" seite immer in meiner "linkleiste" geöffnet.
weitermachen!
Rolf
hier die seite:
<html>
<head>
<script language="JavaScript">
<!-- Verstecken für ältere Browser --
function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + ".htm"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {root=window.open('','passme','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');
root.location.href = location;
} else {
opener.location.href = location;
}
}
// End hiding --->
</SCRIPT>
</head>
<body text="#DF7000" bgcolor="#FFF3CC" link="#0000FF" alink="#FF7F00" vlink="#007F00">
<font size="+1" face="Arial,Times New Roman">Bitte Passwort eingeben!</font>
<FORM NAME="testform">
<INPUT TYPE="text" NAME="inputbox" VALUE="" size=25>
<INPUT TYPE="button" NAME="button" Value="Absenden" onClick="goForit(this.form)"></FORM>
<font size="-1" face="Arial,Times New Roman">Bitte mit ‚Absenden‚ bestätigen; ‚Enter‚ reicht nicht!</font>
</body>
</html>