Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <style>
- </style>
- <script>
- var user = document.getElementById("user");
- var pass = document.getElementById("pass");
- function login() {
- if user == "admin" {
- if pass == "admin" {
- window.location.href = "http://www.google.com";
- }
- }
- }
- </script>
- </head>
- <body>
- <input type="text" name="user" id="user"><br>
- <input type="text" name="pass" id="pass"><br>
- <button id="login" onclick="login();">Login</button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement