Element Object Methods & Properties 2 Flashcards
Returns the last child node of an element
element.lastChild
Returns the last child element of an element
element.lastELementChild
Returns the namespace URI of an element
element.namespaceURI
Returns the next node at the same node tree level
element.nextsibling
Returns the next element at the same node tree level
element.nextElementSibling
Returns the name of a node
element.nodeName
Returns the node type of a node
element.nodeType
Sets or returns the value of a node
element.nodeValue
Joins adjacent text nodes and removes empty text nodes in an element
element.normalize( )
Returns the height of an element, including padding, border and scrollbar
element.offsetHeight
Returns the width of an element, including padding, border and scrollbar
element.offsetWidth
Returns the horizontal offset position of an element
element.offsetLeft
Returns the offset container of an element
element.offsetParent
Returns the vertical offset position of an element
element.offsetTop
Returns the root element (document object) for an element
element.ownerDocument
Returns the parent node of an element
element.parentNode
Returns the parent element node of an element
element.parentElement
Returns the previous node at the same node tree level
element.previousSibling
Returns the previous element at the same node tree level
element.previousElementSibling
Returns the first child element that matches a specified CSS selector(s) of an element
element.querySelector( )
Returns all child elements that matches a specified CSS selector(s) of an element
element.querySelectorAll( )
Removes a specified attribute from an element
element.removeAttribute( )
Removes a specified attribute node, and returns the removed node
element.removeAttributeNode( )
Removes a child node from an element
element.removeChild( )