Categories:

Home / Free JavaScripts / Password Protecting / Here

Cut & Paste Login and password script II

Credit: Anubhav Misra

Description: This is a variation of the original Login and Password script that will take users to two different pages, depending on whether the entered combination is correct or not.

Example: (in demo, user="free", password="javascript")

ENTER USER NAME :

ENTER PASSWORD :

Directions: Simply insert the below into the <body> section of the login page:

Configuring the script

To change the login/password, change "free" and "javascript" inside the script, respectively. To change the destination URLs, modify "success.html" and "failure.html."


JavaScript Tools:
Site Info

CopyRight © 1998-2008 JavaScript Kit. NO PART may be reproduced without author's permission.