Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All onbeforepaste

onbeforepaste of type Function

Occurs on the target before the selection is pasted from the clipboard into the document.

Return true from the event handler to disable the Paste shortcut.

To invoke, select text and right-click or press Ctrl+V.

  • Bubbles: Yes

  • Cancelable: Yes

  • Context Info: dataTransfer

This attribute is an extension to HTMLElement.

See also onbeforecopy, onbeforecut.

© 2015 Microsoft