-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjson_sample.htm
29 lines (29 loc) · 1.01 KB
/
json_sample.htm
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
<html>
<head>
<label for="search">Search to find out more: </label>
<input type="text" name="search" placeholder="search the web"/>
<title>Creating Object JSON with JavaScript</title>
<script language="javascript" >
var JSONObj = { "name" : "bethuelas.com", "year" : 2016 };
document.write("<h1>JSON with JavaScript example</h1>");
document.write("<br>");
document.write("<h3>Bethuelas Inc.="+JSONObj.name+"</h3>");
document.write("<h3>Year of conception="+JSONObj.year+"</h3>");
</script>
</head>
<body>
<form action="http://example.com/cgiscript.pl" method="post">
<p>
<label for="firstname">first name: </label>
<input type="text" id="firstname"><br />
<label for="lastname">last name: </label>
<input type="text" id="lastname"><br />
<label for="email">email: </label>
<input type="text" id="email"><br>
<input type="radio" name="sex" value="male"> Male<br>
<input type="radio" name="sex" value="female"> Female<br>
<input type="submit" value="send"> <input type="reset">
</p>
</form>
</body>
</html>