Get HTML node content - Node.js DOM

Node.js examples for DOM:Node

Description

Get HTML node content

Demo Code


function getContentNode(node){
  if(document.all){
    return node.text;
  }else{/*  ww w.  j a va  2  s.com*/
    return node.textContent;
  }
}

Related Tutorials