Use Password To Get To Final Page

[Total: 0    Average: 0/5]

This shows an elaborate method to keep people out of your stuff.

Head Code:

<script type=text/javascript>
var new_window = null;
function password() {
  var _s = "";
  new_window = window.open('','pass','width=350,height=200,resizable=1');
  _s += "<html><head><";
  _s += "script type=text/javascript>";
  _s += "function doIt() {";
  _s += "  var location;";
  _s += "  var password;";
  _s += "  password=document.testform.inputbox.value;";
  _s += "  location=password+'.html';";
  _s += "  fetch(location);";
  _s += "  theKeeper=window.close();";
  _s += "}";
  _s += "function fetch(location) {";
  _s += "  var root;";
  _s += "  if (opener.closed) {";
  _s += "    root=window.open('','passme','toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no');";
  _s += "    root.location.href=location;";
  _s += "  } else {";
  _s += "    opener.location.href=location;";
  _s += "  }";
  _s += "}<";
  _s += "/script>";
  _s += "<title>NEW WINDOW</title>";
  _s += "</head>";
  _s += "<body>";
  _s += "for test purposes: enter "index" as your password<BR>";
  _s += "<FORM NAME=testform><INPUT TYPE=text NAME=inputbox size=20><INPUT TYPE=button NAME=button Value='Submit Password' onClick='doIt(this.form)'></FORM>";
  _s += "</body></html>";
  new_window.document.write(_s);
}
</SCRIPT>

Body Code:

<A HREF="javascript:password()">go get password</A> 

Times Viewed: 2

Leave a Reply

Your email address will not be published. Required fields are marked *