A Password Protector - JxPharmacy - Doc JavaScript | 2 | WebReference

A Password Protector - JxPharmacy - Doc JavaScript | 2

Code (A Password Protector)

<SCRIPT LANGUAGE="JavaScript">
<!--
// Copyright (c) 2000 internet.com Corp. 
// http://www.webreference.com/js/
// License is granted if and only if this entire
// copyright notice is included. By Tomer Shiran.
function valid(path) {
  var password = prompt("Enter the password:", "");
  if (password) location.href = path + password + ".html";
}
// -->
</SCRIPT>
Click <A HREF="javascript:valid('/js/pharmacy/')">here</A> to enter the password for Doc JavaScript's front page.

http://www.internet.com

Created: November 8, 1997
Revised: December 4, 1997
URL: http://www.webreference.com/js/pharmacy/passwordcode.html