| CODE |
<html> <head> <script type="text/javascript"> <!-- function testing() { var password; var pass1 = "rirrel"; var pass2 = "ineedtotestthis"; if (password=pass1) { window.location = "rirrel.html"; } else if (password=pass2) { window.location = "password.html"; } else { alert("Incorrect.") } } // --> </script> </head> <body> <form onsubmit="testing()"> <p><b>Password:</b> <input type="text" name="password"> <br> <input type="submit" value="Submit"> </p> </form> </body> </html> |