-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest3.html
50 lines (41 loc) · 1.14 KB
/
test3.html
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
50
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
<form name="contact" method="POST" data-netlify="true">
<p>
<label>Your Name: <input type="text" name="name" /></label>
</p>
<p>
<label>Your Email: <input type="email" name="email" /></label>
</p>
<p>
<label>Your Role: <select name="role[]" multiple>
<option value="leader">Leader</option>
<option value="follower">Follower</option>
</select></label>
</p>
<p>
<label>Message: <textarea name="message"></textarea></label>
</p>
<p>
<button type="submit">Send</button>
</p>
</form>
<input type="number" name="" id="depo">
<input type="button" value="Deposit" id="btn">
<script>
var depo = document.getElementById('depo');
var btnn = document.getElementById('btn');
btnn.addEventListener('click', function(){
localStorage.setItem('depos', depo.value);
alert('Deposit successful!');
location.replace('test2.html');
})
</script>
</body>
</html>