jweinst1
8/28/2016 - 7:35 AM

experiment with body text of document.

experiment with body text of document.

var btn = document.createElement("BUTTON");
var t = document.createTextNode("CLICK ME");
btn.appendChild(t);
document.body.appendChild(btn);
document.body.appendChild(document.createTextNode("foo"));
var text = document.body.innerHTML;
//'<button>CLICK ME</button>foo'