SyntaxFix
Write A Post
Hire A Developer
Questions
Create a text node and append it to the button element:
var t = document.createTextNode("test content"); b.appendChild(t);