DOM Objects Flashcards
accessKey
Sets or returns the accesskey attribute of an element
appendChild()
Adds a new child node to an element
attributes
Returns a NamedNodeMap of an element’s attributes
blur()
Removes focus from an element
childElementCount
Returns a node list of all the elements child elements
childNodes
Returns a node list of an element’s child nodes
children
Returns an HTMLCollection of an elements child elements
classList
Returns the class name(s) of an element
className
Sets or returns the value of the class attribute of an element
click()
Simulates a mouse-click on an element
clientHeight
Returns the height of an element, including padding
clientLeft
Returns the width of the left border of an element
clientTop
Returns the width of the top border of an element
clientWidth
Returns the width of an element, including the padding
cloneNode()
Clones an element
closest()
Search the DOM tree for the closest element that matches a CSS selector
compareDocumentPosition()
Compares the document position of two elements
contains()
Returns true if a node is a descendent of a node
contentEditable
Sets or returns whether the content of an element is editable or not
dir
Sets or returns the value of the dir attribute of an element