Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <meta charset = "utf8">
- <title> Ex4 </title>
- <script>
- function init(){
- }
- function checkUser(){
- var User = id_user.input.value;
- var Pass = id_pass.input.value;
- if( User == "obama" && Pass == 1234 ){
- alert("wrong - try again");
- }
- else{
- alert("wrong - try again");
- }
- }
- </script>
- </head>
- <body onload="init()">
- <h1 id="id_h1"> Please Enter your SuperDuperSpecial code for the Pentagon : </h1>
- <h2> USERNAME : </h2>
- <input id= "id_user" type = "text" >
- <br>
- <br>
- <h2> PASSWORD :</h2>
- <input id= "id_pass" type = "number" >
- <br>
- <br>
- <button id="id_button" onclick="checkUser()"> Log In </button>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement