ClipboardEvent
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.
The ClipboardEvent
interface of the Clipboard API 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.
Instance properties
Also inherits properties from its parent Event
.
ClipboardEvent.clipboardData
Read only-
A
DataTransfer
object containing the data affected by the user-initiatedcut
,copy
, orpaste
operation, 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
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
ClipboardEvent | ||||||||||||
ClipboardEvent() constructor | ||||||||||||
clipboardData |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
See also
- Copy-related events:
copy
,cut
,paste
- Clipboard API
- Image support for Async Clipboard article