Hi I have tried to add another password to the script but it gives me an error what am I doing wrong
Code:<div style="margin-top: 2px"> <script language="javascript"> <!--// /*This Script allows people to enter by using a form that asks for a Password*/ function pasuser(form) { if (form.pass.value=="1234") { location="whatever1" } else if { (form.pass.value=="5678") { location="whatever2" } else { alert("Invalid PASSWORD TRY AGAIN") } } //--> </script> </head> <body> <p > </p> <form><h2>Login<h2/> <input name="pass" type="password"> <input value="Login" onclick="pasuser(this.form)" type="button"> <input type="Reset"></form>


Reply With Quote

Bookmarks