Javascript Reference
Objects > Node
javascript Node swapNode( )
Exchanges the current node (in the document tree) with a different node passed as a parameter. The other node object can be created anew, or it can
javascript Node removeChild( )
Removes a child node from the current element. The parameter must be a reference to an existing child node nested inside the current element. On
javascript Node parentNode
Returns a reference to the next outermost node (usually an element) that acts as a container to the current node in the document tree. The relations
javascript Node ownerDocument
Returns a reference to the document object that contains the current node. Potentially helpful for functions that act on object references retriev
javascript Node normalize( )
Collapses all sibling text nodes of the current (element) node into a single text node. Invoking this method may be needed after inserting or re
javascript Node nodeType
Returns an integer that corresponds to a node type as specified in the W3C DOM. This is the preferred property to use to test a node object for its ty
javascript Node nodeName
Returns a string that identifies the name of the node as influenced by the node type. For element and attribute node types, the property returns the
javascript Node nextSibling, previousSibling
Return a reference to the next or previous node (respectively) in the document tree at the same nested level as the current node. If there is no nod
javascript Node lastChild
See firstChild.
javascript Node localName, namespaceURI, prefix
These three properties apply primarily to XML document elements with tags that are defined with the help of XML namespaces. A simplified example of
javascript Node isSupported( )
Returns a Boolean true if the current node supports (i.e., conforms to the required specifications of) a stated W3C DOM module and version. Wh
javascript Node insertBefore( )
Inserts a node as a child of the current node (usually the current node is an element) before one of the other child nodes of the current node.
javascript Node hasChildNodes( )
Returns a Boolean value true if the current node contains one or more child nodes.
javascript Node hasAttribute( )
Returns a Boolean value true if the current Node element has an attribute whose name matches the method parameter.
javascript Node firstChild, lastChild
Return a reference to the first or last child node of the current element node. These child nodes are text nodes nested inside an element.
1-15 / 21 >

Powered by Linode.