<!-- TWO STEPS TO INSTALL MULTIPLE USERS PROMPT: 1. Add the first code into the HEAD of your HTML document 2. Copy the last coding into the BODY of your HTML document --> <!-- STEP ONE: Insert this code into the HEAD of your login HTML document --> <HEAD> <SCRIPT LANGUAGE="JavaScript"> <!-- This script and many more are available online from --> <!-- The JavaScript Source!! http://javascriptsource.com --> <!-- Begin function LogIn(){ username=" "; password=" "; username=prompt("Username:",""); username=username.toLowerCase(); password=prompt("Password:",""); password=password.toLowerCase(); if (username) { if (password) { if (username=="member1") { if (password=="password1") { window.location="page1.html";} } if (username=="member2") { if (password=="password2") { window.location="page2.html";} } if (username=="member3") { if (password=="password3") { window.location="page3.html";} } if (username=="member4") { if (password=="password4") { window.location="page4.html";} } else { alert("Invalid login!") } } } } // End --> </SCRIPT> <!-- STEP TWO: Put this final code into the BODY of your HTML document --> <BODY> <center> <form><input type=button value="Login!" onClick="LogIn()"></form> </center> <!-- Script Size: 1.29 KB -->

1998 Copyright (C) Next Step All Rights Reserved