The ClipboardEvent interface represents events providing information related to modification of the clipboard, that is cut, copy, and paste events.
On this page
ClipboardEvent
Constructor
-
ClipboardEvent() -
Creates a
ClipboardEventevent with the given parameters.
Instance properties
Also inherits properties from its parent Event.
ClipboardEvent.clipboardDataRead only-
A
DataTransferobject containing the data affected by the user-initiatedcut,copy, orpasteoperation, along with its MIME type.
Instance methods
No specific methods; inherits methods from its parent Event.
Specifications
| Specification |
|---|
| Clipboard API and events # clipboard-event-interfaces |
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
ClipboardEvent |
58 | 17 | 22 | No | 45 | 10.1 | 58 | 58 | 22 | 43 | 10.3 | 7.0 |
ClipboardEvent |
41 | 12 | 22 | 4 | 28 | 10.1 | 41 | 41 | 22 | 28 | 10.3 | 4.0 |
clipboardData |
41 | 12 | 22 | 5 | 28 | 10.1 | 41 | 41 | 22 | 28 | 10.3 | 4.0 |
See also
- Copy-related events:
copy,cut,paste - Clipboard API
- Async Clipboard API demo on Glitch
- Image support for Async Clipboard article
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent