-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmethodtest.html
50 lines (42 loc) · 1.35 KB
/
methodtest.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 lang="en">
<head>
<meta charset="utf-8">
<title>HW 5 Part 1</title>
<script type="module" src="methodtest.js"></script>
</head>
<body>
<header>
<h1>HTTP with JavaScript</h1>
</header>
<form action="https://httpbin.org/" id="method_form">
<div>
<div>
<label for="article_id">ID: </label>
<input type="text" name="article_id" id="article_id">
</div>
<br>
<div>
<label for="article_title">Title: </label>
<input type="text" name="article_title" id="article_title">
</div>
<br>
<div>
<label for="article_body">Body: </label>
<textarea name="article_body" id="article_body" rows="4" cols="20"></textarea>
</div>
<input name="article_date" id="article_date" hidden>
</div>
<div>
<button type="button" id="postBtn">postBtn</button>
<button type="button" id="getBtn">getBtn</button>
<button type="button" id="putBtn">putBtn</button>
<button type="button" id="deleteBtn">deleteBtn</button>
</div>
<fieldset>
<legend>Response:</legend>
<output id="response"></output>
</fieldset>
</form>
</body>
</html>