blob: d092b485d9cc986949d34ffba1c6c86731cf1803 (
plain) (
blame)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<!DOCTYPE html>
<style>
h1 { text-align: center }
form {
display: table;
margin: 0 auto;
}
p { display: table-row }
.cell {
display: table-cell;
margin: 0.2em 0;
}
</style>
<script>
function check() {
const PW = document.getElementById('pw').value;
const PW2 = document.getElementById('pw2').value;
if (PW != PW2)
alert('Your password and confirmation password do not match!');
}
</script>
<html>
<body>
<h1>Sign Up</h1>
<form>
<p>
<label class=cell for=user>Username: </label>
<input class=cell type=text id=user>
</p>
<p>
<label class=cell for=pw>Password: </label>
<input class=cell type=password id=pw>
</p>
<p>
<label class=cell for=pw2>Re-type Password: </label>
<input class=cell type=password id=pw2>
</p>
<p>
<span class=cell></span>
<span class=cell>
<input type=reset>
<input type=button onclick='check()' value=Submit>
</span>
</p>
</form>
</body>
</html>
|