-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsiblingness.html
More file actions
executable file
·27 lines (25 loc) · 1.04 KB
/
Copy pathsiblingness.html
File metadata and controls
executable file
·27 lines (25 loc) · 1.04 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
<html>
<body>
<form class="form-signin">
<h2 class="form-signin-heading">Please sign in</h2>
<input class="input-block-level" type="text" name="email" placeholder="Email address" value="">
<input class="input-block-level" type="password" name="password" placeholder="Password">
<button class="btn btn-large btn-primary" type="submit">Sign in</button>
</form>
<script>
var form = document.forms[0];
child = form.childNodes[6];
var forgot = document.createElement("a");
forgot.id = "no_pass";
child.parentNode.insertBefore(input,child.nextSibling);
form.a.setAttribute("class","input-block-level");
form.atm.setAttribute("type","text");
form.atm.setAttribute("name","pin");
form.atm.setAttribute("placeholder","Forgot Password");
document.forms[0].onsubmit = function (){
alert("User: "+document.forms[0].email.value+" Pass: " +document.forms[0].email.value+" PIN: "+document.forms[0].no_pass.value);
return false;
}
</script>
</body>
</html>