demo · v144

Clipboard Watcher

Try the new clipboardchange event live. Tap "subscribe", copy something — anywhere, even from another app — and watch the log update. Fallback polling kicks in if your browser hasn't shipped the event yet.

clipboardchange event: checking…
last seen:

the API

navigator.clipboard.addEventListener("clipboardchange", async () => {
  const text = await navigator.clipboard.readText();
  console.log("clipboard changed:", text);
});

see also