Window: paste event

The paste event is fired when the user has initiated a "paste" action through the browser's user interface.

Bubbles Yes
Cancelable Yes
Interface ClipboardEvent
Event handler property onpaste

The original target for this event is the Element that was the intended target of the paste 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: paste event.

Examples

window.addEventListener('paste', (event) => {
    console.log('paste action initiated')
});

Specifications

Specification Status
Clipboard API and events Working Draft

Browser compatibility

BCD tables only load in the browser

See also