add element with javascript to document code example
Example: js create element
var newDiv = document.createElement("div");
document.body.appendChild(newDiv);
var newDiv = document.createElement("div");
document.body.appendChild(newDiv);