This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The ClipboardEvent()
constructor returns a newly created ClipboardEvent
, representing an event providing information related to modification of the clipboard, that is cut
, copy
, and paste
events.
var clipboardEvent = new ClipboardEvent(type[, options]);
The ClipboardEvent()
constructor also inherits arguments from Event()
.
DOMString
representing the name of the type of the ClipboardEvent
. It is case-sensitive and can be: 'copy'
, 'cut'
, or 'paste'
.Specification | Status | Comment |
---|---|---|
Clipboard API and events The definition of 'ClipboardEvent()' in that specification. | Working Draft | Initial definition. |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 58 | ? | Yes | ? | 45 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 58 | 58 | ? | Yes | 45 | ? | ? |
copy
, cut
, paste
ClipboardEvent
interface it belongs to.
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/ClipboardEvent/ClipboardEvent