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.