Show a DOM element - Node.js DOM

Node.js examples for DOM:Element

Description

Show a DOM element

Demo Code

function show(name) {
  if(name != null) {
    console.log(name);/*from  w w  w .j av  a  2  s.c  o m*/
    window.document.getElementById(name).style.display = 'block';
  } else {
    alert(name);
  }
}

Related Tutorials