onbeforecut | NN n/a IE 5(Win) DOM n/a
| Bubbles: Yes; Cancelable: Yes
Fires just before a user-initiated Cut command (via the Edit menu, a keyboard shortcut, or a context menu) completes the task of removing the content from its current location and moving the selected content to the system clipboard (assuming the browser is in edit mode for body content). At this point in the cut sequence, a function invoked by this event handler can perform additional or substitute processing for the normal system cut action. For example, additional information from the element, such as effective style information of the element containing selected text), can be preserved in the IE clipboardData object (see Chapter 9) for later processing with the help of the onbeforepaste event handler. Canceling the onbeforecut event does not prevent user cutting of a selection.
Typical Targets
All rendered elements.