Search notes:

Element

Element inherits from Node
A prominent interface (the only one?) that inherits from Element is HTMLElement.

Methods, properties and events

after()
afterscriptexecute Non-standard *Event*
animate() Create an Animation object, apply it to the element and then play the animation. See also getAnimations()
animationcancel Event
animationend Event
animationiteration Event
animationstart Event
append()
ariaAtomic
ariaAutoComplete
ariaBusy
ariaChecked
ariaColCount
ariaColIndex
ariaColIndexText
ariaColSpan
ariaCurrent
ariaDescription
ariaDisabled
ariaExpanded
ariaHasPopup
ariaHidden
ariaKeyShortcuts
ariaLabel
ariaLevel
ariaLive
ariaModal
ariaMultiLine
ariaMultiSelectable
ariaOrientation
ariaPlaceholder
ariaPosInSet
ariaPressed
ariaReadOnly
ariaRelevant Non-standard
ariaRequired
ariaRoleDescription
ariaRowCount
ariaRowIndex
ariaRowIndexText
ariaRowSpan
ariaSelected
ariaSetSize
ariaSort
ariaValueMax
ariaValueMin
ariaValueNow
ariaValueText
assignedSlot
attachShadow()
attributes
auxclick Event
before()
beforematch Experimental *Event*
beforescriptexecute Non-standard *Event*
beforexrselect Experimental *Event*
blur Event
childElementCount
children
classList
className
click Event
clientHeight
clientLeft
clientTop
clientWidth
closest()
compositionend Event
compositionstart Event
compositionupdate Event
computedStyleMap() Experimental
contextmenu Event
copy Event
createShadowRoot() Non-standard, Deprecated
cut Event
dblclick Event
DOMActivate Deprecated *Event*
DOMMouseScroll Non-standard, Deprecated *Event*
error Event
firstElementChild
focus Event
focusin Event
focusout Event
fullscreenchange Event
fullscreenerror Event
gesturechange Non-standard *Event*
gestureend Non-standard *Event*
gesturestart Non-standard *Event*
getAnimations() See also animate()
getAttribute()
getAttributeNames()
getAttributeNode()
getAttributeNodeNS()
getAttributeNS()
getBoundingClientRect()
getClientRects()
getElementsByClassName()
getElementsByTagName()
getElementsByTagNameNS()
gotpointercapture Event
hasAttribute()
hasAttributeNS()
hasAttributes()
hasPointerCapture()
id
innerHTML Compare with outerHTML. For security reasons, setHTML is usually preferred over innerHTML.
insertAdjacentElement(pos, elem), insertAdjacentHTML(pos, html), insertAdjacentText(pos, txt) pos is one of the following strings: beforebegin, afterbegin, beforeend, afterend. text and html are string arguments, but html will be parsed as HTML. elem is an Element object.
keydown Event
keypress Deprecated *Event*
keyup Event
lastElementChild
localName
lostpointercapture Event
matches()
mousedown Event
mouseenter Event
mouseleave Event
mousemove Event
mouseout Event
mouseover Event
mouseup Event
mousewheel Non-standard, Deprecated *Event*
MozMousePixelScroll Non-standard, Deprecated *Event*
msContentZoom Non-standard *Event*
MSGestureChange Non-standard *Event*
MSGestureEnd Non-standard, Event
MSGestureHold Non-standard, Event
MSGestureStart Non-standard, Event
MSGestureTap Non-standard, Event
msGetRegionContent Non-standard
MSInertiaStart Non-standard, Event
MSManipulationStateChanged Non-standard, Event
msRegionOverflow Non-standard
msZoomTo() Non-standard
namespaceURI
nextElementSibling
openOrClosedShadowRoot Non-standard
outerHTML Compare with innerHTML
part
paste Event
pointercancel Event
pointerdown Event
pointerenter Event
pointerleave Event
pointermove Event
pointerout Event
pointerover Event
pointerup Event
prefix
prepend()
previousElementSibling
querySelector() / querySelectorAll() Returns the first/all nodes which match the given selector. Compare with document.querySelector and document.querySelectorAll().
releasePointerCapture()
remove()
removeAttribute()
removeAttributeNode()
removeAttributeNS()
replaceChildren()
replaceWith()
requestFullscreen()
requestPointerLock()
scroll()
scroll Event
scrollBy()
scrollHeight
scrollIntoView()
scrollIntoViewIfNeeded() Non-standard
scrollLeft
scrollLeftMax Non-standard
scrollTo()
scrollTop
scrollTopMax Non-standard
scrollWidth
securitypolicyviolation Event
setAttribute()
setAttributeNode()
setAttributeNodeNS()
setAttributeNS()
setCapture() Non-standard, Deprecated
setHTML() Experimental, compare with innerHTML and HTMLElement.innerText and HTMLElement.outerText.
setPointerCapture()
shadowRoot
show Non-standard, Deprecated, Event
slot
tagName
toggleAttribute()
touchcancel Event
touchend Event
touchmove Event
touchstart Event
transitioncancel Event
transitionend Event
transitionrun Event
transitionstart Event
webkitmouseforcechanged Non-standard, Event
webkitmouseforcedown Non-standard, Event
webkitmouseforceup Non-standard, Event
webkitmouseforcewillbegin Non-standard, Event
wheel Event

See also

document.getElementById

Index