1document.getElementById("add").onclick = function() {
2
3 var node = document.createElement("Li");
4 var text = document.getElementById("user_input").value;
5 var textnode=document.createTextNode(text);
6 node.appendChild(textnode);
7 document.getElementById("list_item").appendChild(node);
8}
9