Node.js examples for DOM:Element
Append contents to a DOM element
function append(name, content) { if(name != null) { var div = window.document.getElementById(name); div.innerHTML = div.innerHTML + content; } else {/*from www . jav a 2s . c om*/ return false; } }