Answers for "adding a button in javascript"

0

adding a button in javascript

// The code below should help
let btn = document.createElement("button");
btn.innerHTML = "Submit";
btn.type = "submit";
btn.name = "formBtn";
document.body.appendChild(btn);
Posted by: Guest on October-05-2021

Code answers related to "adding a button in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language