JavaScript DOM

Document

Node
  |
  +--Document
Direct Known Subclasses:
HTMLDocument

Fields and methods commonly ignored by browsers, and relating to XML are not listed here.


Fields
readonly Element documentElement
 
Fields inherited from Node
attributes, childNodes, firstChild, lastChild, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentElement, parentNode, previousSibling
 
Methods
Element createElement(String tagName)
Text createTextNode(String data)
Element getElementById(String elementId)
NodeList getElementsByTagName(String tagname)
 
Methods inherited from Node
appendChild, cloneNode, hasChildNodes, insertBefore, removeChild, removeNode, replaceChild
 

JavaScript DOM