GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • MDN
  • HTML: Markup language
  • Elements
  • Global attributes
  • Attributes
  • See all…
  • Responsive images
  • HTML cheatsheet
  • Date & time formats
  • See all…
  • SVG
  • MathML
  • XML
  • CSS: Styling language

This view

  • Original page
  • New address

GeezerVison is showing developer.mozilla.org — Element: pointerup event - Web APIs | MDN

Element: pointerup event

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2020.

  • See full compatibility
  • Learn more

The pointerup event is fired when a pointer is no longer active. Remember that it is possible to get a pointercancel event instead.

This behavior is different from mouseup events. When using a physical mouse, mouseup events fire whenever any button on a mouse is released. pointerup events fire only upon the last button release; previous button releases, while other buttons are held down, don't fire pointerup events.

Syntax

Use the event name in addEventListener():

js
addEventListener("pointerup", (event) => { })

Alternatively, assign to the event handler property of the interface:

js
onpointerup = (event) => { }

Event type

A PointerEvent. Inherits from Event.

Examples

Using addEventListener():

js
const para = document.querySelector("p");

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

Using the onpointerup event handler property (but note that this replaces other event listeners added using onpointerup, if any):

js
const para = document.querySelector("p");

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

Specifications

Specification
Pointer Events
# pointerup
Pointer Events
# dom-globaleventhandlers-onpointerup

Browser compatibility

See also

  • Related events
    • gotpointercapture
    • lostpointercapture
    • pointerover
    • pointerenter
    • pointerdown
    • pointermove
    • pointercancel
    • pointerout
    • pointerleave
    • pointerrawupdate
    • mouseup

Help improve MDN

Learn how to contribute

This page was last modified on Oct 26, 2026 by MDN contributors.

View this page on GitHub • Report a problem with this content
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.