Document: pointerup event

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

Bubbles Yes
Cancelable Yes
Interface PointerEvent
Event handler property onpointerup


Using addEventListener():

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

Using the onpointerup event handler property:

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


Specification Status
Pointer Events – Level 2 Recommendation
Pointer Events Obsolete

Browser compatibility

BCD tables only load in the browser

See also