Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

what is a node

Is a child of EventTarget
Node = DOM objects =  Attr, CharacterData (which Text, Comment, and CDATASection are all based on), ProcessingInstruction, DocumentType, Notation, Entity, and EntityReference.
function isNode(o){
  return (
    typeof Node === "object" ? o instanceof Node : 
    o && typeof o === "object" && typeof o.nodeType === "number" && typeof o.nodeName==="string"
  );
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #node
ADD COMMENT
Topic
Name
5+4 =