Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <title>Pagina de Log - In</title>
- </head>
- <body>
- <h1>Pagina de Log - In</h1>
- <form name="login">
- Usuario<input type="text" name="usuario"/>
- Password<input type="password" name="password"/>
- <input type="button" onclick="check(this.form)" value="Login"/>
- <input type="reset" value="Cancel"/>
- </form>
- <script language="javascript">
- function check(form) { /*function to check userid & password funcion que revisa usario y constraseña*/
- /*aqui se revisa si la contraseña esta correcta*/
- if(form.usuario.value == "miusuario" && form.password.value == "mipassword") {
- window.open('target.html')/*aqui pones la pagina a donde te enviara si el usuario y contraseña son correctas*/
- }
- else {
- alert("Error Password or Username")/*muestra error si no coinciden usuario y password*/
- }
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement