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
ClipboardEvent
event with the given parameters.
Properties
Also inherits properties from its parent Event
.
ClipboardEvent.clipboardData
Read only- Is a
DataTransfer
object containing the data affected by the user-initiatedcut
,copy
, orpaste
operation, along with its MIME type.
Methods
No specific methods; inherits methods from its parent Event
.
Specifications
Specification | Status | Comment |
---|---|---|
Clipboard API and events The definition of 'ClipboardEvent' in that specification. |
Working Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ClipboardEvent | Chrome Full support Yes | Edge Full support 12 | Firefox Full support 22 | IE Full support 4 | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 22 | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
ClipboardEvent() constructor | Chrome Full support 58 | Edge Full support ≤79 | Firefox Full support 22 | IE ? | Opera Full support 45 | Safari ? | WebView Android Full support 58 | Chrome Android Full support 58 | Firefox Android Full support 22 | Opera Android Full support 43 | Safari iOS ? | Samsung Internet Android Full support 7.0 |
clipboardData | Chrome Full support Yes | Edge Full support 12 | Firefox Full support 22 | IE Full support 5 | Opera Full support Yes | Safari Full support Yes | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 22 | Opera Android Full support Yes | Safari iOS Full support Yes | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown
- Experimental. Expect behavior to change in the future.
- Experimental. Expect behavior to change in the future.
See also
- Copy-related events:
copy
,cut
,paste
- Clipboard API
- Async Clipboard API demo on Glitch
- Image support for Async Clipboard article