This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.
The ClipboardEvent interface of the Clipboard API represents events providing information related to modification of the clipboard, that is cut, copy, and paste events.
ClipboardEvent()Creates a ClipboardEvent event with the given parameters.
Also inherits properties from its parent Event.
ClipboardEvent.clipboardData Read only
A DataTransfer object containing the data affected by the user-initiated cut, copy, or paste operation, along with its MIME type.
No specific methods; inherits methods from its parent Event.
| Specification |
|---|
| Clipboard API and events> # clipboard-event-interfaces> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
ClipboardEvent |
58 | 17 | 22 | 45 | 10.1 | 58 | 22 | 43 | 10.3 | 7.0 | 58 | 10.3 |
ClipboardEvent |
41 | 12 | 22["When pasting multiple files, only returns the first file. See bug 1954680.", "Before Firefox 140, when pasting multiple files, and the first file was not acceptable, returned no file. See bug 1961170."] |
28 | 10.1 | 41 | 22["When pasting multiple files, only returns the first file. See bug 1954680.", "Before Firefox for Android 140, when pasting multiple files, and the first file was not acceptable, returned no file. See bug 1961170."] |
28 | 10.3 | 4.0 | 41 | 10.3 |
clipboardData |
41 | 12 | 22 | 28 | 10.1 | 41 | 22 | 28 | 10.3 | 4.0 | 41 | 10.3 |
copy, cut, paste
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent