Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script>
- function check()
- {
- if(login.user.value == "")
- {
- alert("Login Field is Empty");
- return false;
- }
- if(login.pass.value == "" )
- {
- alert("Password is Required");
- return false;
- }
- }
- </script>
- </head>
- <body>
- <form name= "login" onsubmit= "check()">
- <br>Username: <input type="text" name= "user">
- <br>Password: <input type= "password" name= "pass">
- <br><input type= "submit" name= "submit" value= "Submit">
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment