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().

Is a DOMString representing the name of the type of the ClipboardEvent. It is case-sensitive and can be: 'copy', 'cut', or 'paste'.
options Optional
Options are as follows:
  • clipboardData: A DataTransfer containing the data concerned by the clipboard event.
  • dataType : A DOMString containing the MIME-type of the data contained in the data argument.
  • data : A DOMString containing the data concerned by the clipboard event.


Specification Status Comment
Clipboard API and events
The definition of 'ClipboardEvent()' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Chrome Full support 58Edge ? Firefox Full support YesIE ? Opera Full support 45Safari ? WebView Android Full support 58Chrome Android Full support 58Edge Mobile ? Firefox Android Full support YesOpera Android Full support 45Safari iOS ? Samsung Internet Android ?


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

Document Tags and Contributors

Contributors to this page: SaschaNaz, fscholz, jpmedley, groovecoder, Sheppy, teoli, tregagnon
Last updated by: SaschaNaz,