var button = document.createElement("input");
input.type = "button";
var whatever;//get whatever you want to append button to
whatever.appendChild(button);
Just create your button and add it to whatever dom element you want to using appendChild…
1
solved How to add button using javascript in html page dynamically [closed]