Export (0) Print
Expand All

2.3.4.4 onbeforecopy

onbeforecopy of type Function

Fires on the source object before the selection is copied to the system clipboard.

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

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

  • Bubbles: Yes

  • Cancelable: Yes

  • Context Info: dataTransfer

This attribute is an extension to HTMLElement.

See also onbeforecut, onbeforepaste.

Show:
© 2014 Microsoft