var a = document.createElement("button"); a.innerText = "Addition"; a.id = "addition"; document.body.appendChild(a);