HTMLElement: pointerup event

The pointerup event is fired when a pointer is no longer active.

Bubbles Yes
Cancelable Yes
Interface PointerEvent
Event handler property onpointerup

Examples

Using addEventListener():

const para = document.querySelector('p');

para.addEventListener('pointerup', (event) => {
  console.log('Pointer up');
});

Using the onpointerup event handler property:

const para = document.querySelector('p');

para.onpointerup = (event) => {
  console.log('Pointer up');
};

Specifications

Specification
Pointer Events
# the-pointerup-event

Browser compatibility

BCD tables only load in the browser

See also