Node.js examples for DOM:Element
Change the contents of a DOM element
function html(name, content) { if(name != null) { console.log(name);/*from www .j ava 2 s . c om*/ console.log(content); window.document.getElementByClassName(name).innerHTML = content; } else { alert(name); } }