paste
The paste event is fired when a selection has been pasted from the clipboard to the document.
Properties
Property | Type | Description |
target Read only
| EventTarget | The event target (the topmost target in the DOM tree). |
type Read only
| DOMString | The type of event. |
bubbles Read only
| boolean | Does the event normally bubble? |
cancelable Read only
| boolean | Is it possible to cancel the event? |
clipboardData Read only
| DataTransfer | The contents of the clipboard. Not only text, but also files and images. |
Browser compatibility
Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
Basic support | 58 | (Yes) | (Yes) | No support | 45 | (Yes) |
clipboardData | 58 | (Yes) |
22 (22) | No support | 45 | (Yes) |
Feature | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
Basic support | 58 | 58 | (Yes) | ? | ? | 45 | ? |
clipboardData | 58 | 58 | (Yes) | ? | ? | 45 | ? |