coderef

Clipboard eventsBaseline · Widely available

The "copy", "cut", and "paste" events fire on elements when the user starts an action with the clipboard.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Mar 27, 2017. Widely available since Sep 27, 2019.

Browser support

DesktopChrome
1–40Not supported
41+Supportedsince Mar 3, 2015
Current: 155
Edge
12+Supportedsince Jul 29, 2015
Current: 154
Firefox
1–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157
Safari
1–10Not supported
10.1+Supportedsince Mar 27, 2017
Current: 27
MobileChrome Android
18–40Not supported
41+Supportedsince Mar 11, 2015
Current: 155
Firefox Android
4–21Not supported
22+Supportedsince Jun 25, 2013
Current: 157
Safari iOS
1–10Not supported
10.3+Supportedsince Mar 27, 2017
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: ClipboardEvent.

Feature detection

JS · check before using
if ("ClipboardEvent" in globalThis) {
  // ClipboardEvent is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (6). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
ClipboardEvent41122210.1412210.3
ClipboardEvent.ClipboardEvent58172210.1582210.3
ClipboardEvent.clipboardData41122210.1412210.3
Element.copy_event11222318223
Element.cut_event11222318223
Element.paste_event11222318223