console
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script>
window.onload=function(){
var oTopinsert_btn=document.getElementById("topinsert_btn");
oTopinsert_btn.onclick=function(){
var oInput_txt=document.getElementById("input_txt");
var oUl=document.getElementById("list");
var textNode=document.createTextNode(oInput_txt.value);
var oLi=document.createElement("li");
oLi.appendChild(textNode);
oUl.insertBefore(oLi,oUl.firstElementChild);
}
var oBottominsert_btn=document.getElementById("bottominsert_btn");
oBottominsert_btn.onclick=function(){
var oInput_txt=document.getElementById("input_txt");
var oUl=document.getElementById("list");
var textNode=document.createTextNode(oInput_txt.value);
var oLi=document.createElement("li");
oLi.appendChild(textNode);
oUl.appendChild(oLi);
}
var oRemove_btn=document.getElementById("remove_btn");
oRemove_btn.onclick=function(){
var oUl=document.getElementById("list");
oUl.removeChild(oUl.lastElementChild);
}
}
</script>
</head>
<body>
<ul id="list">
<li>HTML</li>
<li>CSS</li>
<li>SCRIPT</li>
<li>VUE+</li>
</ul>
<input id="input_txt" type="text"/>
<input id="topinsert_btn" type="button" value="TOP INSERT"/>
<input id="bottominsert_btn" type="button" value="BOTTOM INSERT"/>
<input id="remove_btn" type="button" value="RemoveLast"/>
</br>
</body>
</html>