Node.js examples for DOM:Element
Hide a DOM element
function hide(name) { if(name != null) { console.log(name);// w w w.ja va 2 s.c o m window.document.getElementById(name).style.display = 'none'; } else { alert(name); } }