var p = document.createElement("p"); p.appendChild(document.createTextNode(" ")); document.body.appendChild(p);