Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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);
Source by sebhastian.com #
 
PREVIOUS NEXT
Tagged: #adding #button #javascript
ADD COMMENT
Topic
Name
4+6 =