-
Notifications
You must be signed in to change notification settings - Fork 1
/
test.html
26 lines (24 loc) · 852 Bytes
/
test.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
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>nimbla - vodox</p>
<p>nimble - vodox</p>
<p id="data"> nimble </p>
<p id="debug" ></p>
<p id="debug2" ></p>
<input type="text" id="inp"/>
<button id="submit" > submit </button>
<div id="asd">
</div>
<script>
document.querySelector("#submit").onclick = function() {
var node = document.createElement("LI"); // Create a <li> node
var textnode = document.createTextNode(document.querySelector("#inp").value); // Create a text node
node.appendChild(textnode); // Append the text to <li>
document.querySelector("#asd").appendChild(node);
}
</script>
</body>
</html>