DU kan prøve det her:
<HEAD>
<SCRIPT LANGUAGE=\"javascript\">
<!-- Begin
var nifty_little_window = null;
function gateKeeper() {
nifty_little_window = window.open(\'gatekeep.html\', \'theKeeper\', \'width=350,height=200,resizable=1\');
}
// End -->
</SCRIPT></head>
<body><BODY>
<CENTER>
<A HREF=\"\" onMouseOver=\"gateKeeper()\">Access the protected area.</A><BR>
<P>
Or, click Enter...<BR>
<FORM NAME=\"gatekeeperbutton\" ACTION=\"\" onSubmit=\"gateKeeper()\">
<input type=\"submit\" value=\"Enter!\">
</FORM>
</CENTER></body>
<HEAD>
<SCRIPT LANGUAGE=\"JavaScript\">
<!-- Begin
// Original:
http://junior.apk.net/~jbarta/weblinks/gate_keeper/function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + \".html\"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.open(\'\',\'theKeepersGopher\',\'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no\');
root.location.href = location;
} else {
opener.location.href = location;
}
}
// End -->
</SCRIPT></head>
<head><HEAD>
<SCRIPT LANGUAGE=\"JavaScript\">
<!-- Begin
// Original:
http://junior.apk.net/~jbarta/weblinks/gate_keeper/function goForit() {
var location;
var password;
password=this.document.testform.inputbox.value
location=password + \".html\"
fetch(location)
theKeeper=window.close()
}
function fetch(location) {
var root;
if (opener.closed) {
root=window.open(\'\',\'theKeepersGopher\',\'toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no\');
root.location.href = location;
} else {
opener.location.href = location;
}
}
// End -->
</SCRIPT></head>
eller du kan tage ind på den her hp:
http://www.edb.dejligbjerg.dk/javascript/windows/password.htm