Password Protection

The intention of the internet is to make documents for evryone to see. But, there are exceptions to that rule. It's simple. All you need is a little JavaScript. Here is the script you need:
<SCRIPT LANGUAGE="JavaScript">
function login()
{
   var username;
   var password;
   var address;

   username = prompt("Please enter your username.");
   password = prompt("Please enter your password.");
   address = username + "_" + password + ".html";
   window . open(address);
}
</SCRIPT>
You can login with a button or text. The username is PKM and the password is 1043. So, the file you would go to is PKM_1043.html, as you can tell from the code. And if you click the X or cancel in the prompt box, username and password are set to null. So the file would be null_null.html. In that file I put this JavaScript code:
<SCRIPT LANGUAGE="JavaScript">
window . close();
</SCRIPT>
so the window would close right away. Then you would be back to the login page. Here is an example, and rememer, the username is PKM and the password is 1043!
Login with text.