-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (27 loc) · 849 Bytes
/
index.html
File metadata and controls
33 lines (27 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Login Form</title>
</head>
<body>
<div style="border: 1px solid black; width: 300px; padding:30px; height:150px; margin-top: 150px; margin-left: 400px">
<form name="myForm" action="js/source/face.html" onsubmit="return validateForm()" method="post">
Username: <input type="text" name="uname"><br/><br/>
Password: <input type="password" name="pwd"><br/><br/>
<input type="submit" value="Submit">
</form>
</div>
<p style="font-size: 13px">Default Username: abc | Default Password: 123</p>
<script>
function validateForm() {
var x = document.forms["myForm"]["uname"].value;
var y = document.forms["myForm"]["pwd"].value;
if (x != "abc" || y !="123") {
alert("Incorrect Username-Password combination!");
return false;
}
}
</script>
</body>
</html>