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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
paste event
|
Chrome
Full support 58 |
Edge
Full support 12 |
Firefox
Full support Yes |
IE
Full support 11 |
Opera
Full support 45 |
Safari
Full support Yes |
WebView Android
Full support 58 |
Chrome Android
Full support 58 |
Firefox Android
Full support Yes |
Opera Android
Full support 43 |
Safari iOS
? |
Samsung Internet Android
Full support 7.0 |
clipboardData
|
Chrome
Full support 58 |
Edge
Full support ≤18 |
Firefox
Full support 22 |
IE
No support No |
Opera
Full support 45 |
Safari
Full support Yes |
WebView Android
Full support 58 |
Chrome Android
Full support 58 |
Firefox Android
Full support 22 |
Opera Android
Full support 43 |
Safari iOS
? |
Samsung Internet Android
Full support 7.0 |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
See also
- Related events:
cut
,copy
- This event on
Element
targets:paste
- This event on
Document
targets:paste
Window: paste event by Mozilla Contributors is licensed under CC-BY-SA 2.5.