MDN self-hosted library · e01.org

Element: pointerup event

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

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

para.addEventListener("pointerup", (event) => {
  console.log("Pointer up");
});
js
const para = document.querySelector("p");

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