-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfail.html
More file actions
35 lines (35 loc) · 1.05 KB
/
fail.html
File metadata and controls
35 lines (35 loc) · 1.05 KB
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
34
35
<html>
<head>
<link rel="stylesheet" href="form.css">
<title>
</title>
</head>
<!-- multistep form -->
<form id="msform">
<!-- fieldsets -->
<fieldset>
<h2 class="fs-title">Unauthorized Access <br>Try Again!</h2><br>
<input type="username" name="username" placeholder="username" id="text1" />
<input type="password" name="pass" placeholder="Password" id="text2" />
<input type="button" class="next action-button" value="Login" onclick="javascript:validate()" />
<input type="reset" name="reset" class="next action-button" value="Clear" />
</fieldset>
</form>
<script type="text/javascript">
function validate()
{
if( document.getElementById("text1").value == "0"
&& document.getElementById("text2").value == "0" )
{
//alert( "validation succeeded" );
location.href="index2.html";
}
else
{
//alert( "validation failed" );
location.href="fail.html";
}
}
</script>
<footer align="center">Designed by <a href="https://www.facebook.com/sachin.rohilla.1694">Sachin Rohilla</a> </footer>
</html>