DOM Objects Pt 2 Flashcards
nodeValue
Sets or returns the value of a node
offsetHeight
Returns the height of an element, including padding, border and scrollbar
offsetWidth
Returns the width of an element, including padding, border and scrollbar
offsetLeft
Returns the horizontal offset position of an element
offsetParent
Returns the offset container of an element
offsetTop
Returns the vertical offset position of an element
outerHTML
Sets or returns the content of an element (including the start tag and the end tag)
outerText
Sets or returns the outer text content of a node and its descendants
ownerDocument
Returns the root element (document object) for an element
parentNode
Returns the parent node of an element
parentElement
Returns the parent element node of an element
previousSibling
Returns the previous node at the same node tree level
previousElementSibling
Returns the previous element at the same node tree level
remove()
Removes an element from the DOM
removeAttribute()
Removes an attribute from an element