ClipboardEvent
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The ClipboardEvent interface represents events providing information related to modification of the clipboard, that is cut, copy, and paste events.
Constructor
ClipboardEvent()-
Creates a
ClipboardEventevent with the given parameters.
Properties
Also inherits properties from its parent Event.
-
ClipboardEvent.clipboardDataRead only -
Is a
DataTransferobject containing the data affected by the user-initiatedcut,copy, orpasteoperation, along with its MIME type.
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 |
12 |
22 |
4 |
45 |
10.1 |
58 |
58 |
22 |
43 |
10.3 |
7.0 |
ClipboardEvent |
58 |
≤79 |
22 |
No |
45 |
10.1 |
58 |
58 |
22 |
43 |
10.3 |
7.0 |
clipboardData |
58 |
12 |
22 |
5 |
45 |
10.1 |
58 |
58 |
22 |
43 |
10.3 |
7.0 |
See also
- Copy-related events:
copy,cut,paste - Clipboard API
- Async Clipboard API demo on Glitch
- Image support for Async Clipboard article
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent