W3cubDocs

/DOM Events

paste

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 DefaultView, Document, Element
Interface ClipboardEvent

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 Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support (Yes) (Yes) ? ? (Yes)
clipboardData (Yes) 22 (22) No support ? (Yes)
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support ? ? ? ? ?
clipboardData ? ? ? ? ?

© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/Events/paste