Elements Flashcards
Element.accessKey
Sets or returns the accesskey for an element.
Element.addEventListener()
Attaches an event handler to the specified element.
Element.appendChild()
Adds a new child node, to an element, as the last child node.
Element.attributes
Returns a NamedNodeMap of an element’s attributes.
Element.childNodes
Returns a NodeList of child nodes for an element.
Element.className
Sets or returns the class attribute of an element.
Element.clientHeight
Returns the viewable height of an element.
Element.clientWidth
Returns the viewable width of an element.
Element.cloneNode()
Clones an element.
Element.compareDocumentPosition()
Compares the document position of two elements.
Element.contentEditable
Sets or returns whether the content of an element is editable or not.
Element.dir
Sets or returns the text direction of an element.
Element.firstChild
Returns the first child of an element.
Element.getAttribute()
Returns the specified attribute value of an element node.
Element.getAttributeNode()
Returns the specified attribute node.
Element.getElementsByClassName()
Returns a collection of all child elements with the specified class name.
Element.getElementsByTagName()
Returns a collection of all child elements with the specified tagname.
Element.getFeature()
Returns an object which implements the APIs of a specified feature.
Element.getUserData()
Returns the object associated to a key on an element.
Element.hasAttribute()
Returns true if an element has the specified attribute, otherwise false.
Element.hasAttributes()
Returns true if an element has any attributes, otherwise false.
Element.hasChildNodes()
Returns true if an element has any child nodes, otherwise false.
Element.id
Sets or returns the id of an element.
Element.innerHTML
Sets or returns the content of an element.
Element.insertBefore()
Inserts a new child node before a specified, existing, child node.
Element.isContentEditable
Returns true if the content of an element is editable, otherwise false.
Element.isDefaultNamespace()
Returns true if the content of an element is editable, otherwise false.
Element.isEqualNode()
Checks if two elements are equal.
Element.isSameNode()
Checks if two elements are the same node.
Element.isSupported()
Returns true if a specified feature is supported on the element.
Element.lang
Sets or returns the language code for an element.
Element.lastChild
Returns the last child of an element.
Element.namespaceURI
Returns the namespace URI of an element.
Element.nextSibling
Returns the next node at the same node tree level.
Element.nodeName
Returns the name of an element.
Element.nodeType
Returns the node type of an element.
Element.nodeValue
Sets or returns the value of an element.
Element.normalize()
Joins adjacent text nodes and removes empty text nodes in an element.
Element.offsetHeight
Returns the height of an element.
Element.offsetWidth
Returns the width of an element.
Element.offsetLeft
Returns the horizontal offset position of an element.
Element.offsetParent
Returns the offset container of an element.
Element.offsetTop
Returns the vertical offset position of an element.
Element.ownerDocument
Returns the root element (document object) for an element.
Element.parentNode
Returns the parent node of an element.
Element.previousSibling
Returns the previous element at the same node tree level.
Element.querySelector()
Returns the first child element that matches a specified CSS selector(s) of an element.
Element.removeAttribute()
Removes a specified attribute from an element.
Element.removeAttributeNode()
Removes a specified attribute node, and returns the removed node.
Element.removeChild()
Removes a child node from an element.
Element.replaceChild()
Replaces a child node in an element.
Element.removeEventListener()
Removes an event handler that has been attached with the addEventListener() method.
Element.scrollHeight
Returns the entire height of an element.
Element.scrollLeft
Returns the distance between the left edge of an element and the view.
Element.scrollTop
Returns the distance between the top edge of an element and the view.