2.3.4.5 onbeforecut

onbeforecut of type Function

Occurs on the source object before the selection is deleted from the document.

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

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

  • Bubbles: Yes

  • Cancelable: Yes

  • Context Info: dataTransfer

This attribute is an extension to HTMLElement.

See also onbeforecopy, onbeforepaste.