2.3.4.8 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.

Show: