Element: pointerup

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

Bubbles Yes
Cancelable Yes
Target objects Document, Element
Interface PointerEvent
Event handler 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');
};

Browser compatibility

No compatibility data found. Please contribute data for "api.Element.pointerup_event" (depth: 1) to the MDN compatibility data repository.

See also

Document Tags and Contributors

Last updated by: wbamberg,