-
Notifications
You must be signed in to change notification settings - Fork 0
/
yegujrkigktr.html
19 lines (18 loc) · 973 Bytes
/
yegujrkigktr.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<form name="login" class="form">
<p class="title">Client Dashboard</p>
<p class="login-description">This dashboard allows you to manage your project and files</p>
<input type="text" name="emails" placeholder="Username" class="text-field"/>
<input type="password" name="dictionary" placeholder="Password" class="text-field"/>
<input type="submit" class="button" onclick="check(this.form)" value="LoginButton"/>
</form>
<script>
function check(form) { /*function to check userid & password*/
/*the following code checkes whether the entered userid and password are matching*/
if(form.emails.value == "johnsmith" && form.dictionary.value == "password123") {
window.open('dashboard.html')/*opens the target page while Id & password matches*/
}
else {
alert("Error Password or Username")/*displays error message*/
}
}
</script>