Window: copy event

The copy event fires when the user initiates a copy action through the browser's user interface.

Bubbles Yes
Cancelable Yes
Interface ClipboardEvent
Event handler property oncopy

The original target for this event is the Element that was the intended target of the copy action. You can listen for this event on the Window interface to handle it in the capture or bubbling phases. For full details on this event please see the page on the Element: copy event.


window.addEventListener('copy', (event) => {
    console.log('copy action initiated')


Clipboard API and events
# clipboard-event-copy

Browser compatibility

BCD tables only load in the browser

See also