-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpassword
25 lines (25 loc) · 834 Bytes
/
password
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
<!doctype html>
<html>
<body>
<script language="javascript">
function pasuser(form) {
if (form.id.value=="translator") {
//the userid is translator
if (form.pass.value=="encryption") {
//the password is encryption
location="code"
} else {
alert("Invalid Password")
}
} else { alert("Invalid UserID")
}
}
</script>
<center><table bgcolor="white" cellpadding="12" border="1"><tr><td colspan="2">
<center><h1><i><b>Login</b></i></h1></center>
</td></tr><tr><td><h1><i><b>UserID:</b></i></h1></td><td><form name="login"><input name="id" type="text"></td></tr>
<tr><td><h1><i><b>Password:</b></i></h1></td><td><input name="pass" type="password"></td></tr>
<tr><td><center><input type="button" value="Login" onClick="pasuser(this.form)"></center></td><td>
<center><br><input type="Reset"></form></td></tr></table></center>
</body>
</html>