let btn = document.createElement("button"); btn.innerHTML = "Save"; btn.onclick = function () { alert("Button is clicked"); }; document.body.appendChild(btn);