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.