214-564-5316
Thursday, May 17, 2012

Javascript Login Script
The username="username" and the Password="password"--
You will be directed to "access.htm" if the login is valid or "sorry.htm" if it is not valid.
(You may hard code upper and lowercase letters to make the login "case sensitive".)



The code below simply creates the form and calls the login.js file to the page.
Javascript logins are a VERY low security method of protecting pages because
a determined user can find the username/password fairly easily.
As a result, we do not recommend use of this code.
However, for those determined to use it we suggest renaming the login.js file
to something cryptic and sticking it into a folder with a cryptic name.
Then change the code instance "login.js" (below) to the new path.

Here is an ASP login script that is much more secure.

Here is the page code: Download the login.js file