{{EventRef}}
This page needs to be updated to match the currently specified behaviour. In the meantime please refer to the specification: https://www.w3.org/TR/clipboard-apis/#the-paste-action
The paste event is fired when a selection has been pasted from the clipboard to the document.
Bubbles | Yes |
Cancelable | Yes |
Target objects | {{domxref("DefaultView")}}, {{domxref("Document")}}, {{domxref("Element")}} |
Interface | {{domxref("ClipboardEvent")}} |
Properties
Property | Type | Description |
---|---|---|
target {{ReadOnlyInline}} |
{{domxref("EventTarget")}} | The event target (the topmost target in the DOM tree). |
type {{ReadOnlyInline}} |
{{domxref("DOMString")}} | The type of event. |
bubbles {{ReadOnlyInline}} |
boolean |
Does the event normally bubble? |
cancelable {{ReadOnlyInline}} |
boolean |
Is it possible to cancel the event? |
clipboardData {{ReadOnlyInline}} |
{{domxref("DataTransfer")}} | The contents of the clipboard. Not only text, but also files and images. |
Browser compatibility
{{CompatibilityTable}}
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}} | {{CompatVersionUnknown}} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{CompatVersionUnknown}} |
clipboardData |
{{CompatVersionUnknown}} | {{ CompatGeckoDesktop(22) }} | {{ CompatNo() }} | {{ CompatUnknown() }} | {{CompatVersionUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} |
clipboardData |
{{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} | {{ CompatUnknown() }} |
Related events
- {{Event("copy")}}
- {{Event("cut")}}