Window: cut event

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2017.

The cut event is fired when the user has initiated a "cut" action through the browser's user interface.

The original target for this event is the Element that was the intended target of the cut action. You can listen for this event on the Window interface to handle it in the capture or bubbling phases. For full details on this event please see the page on the Element: cut event.

Syntax

Use the event name in methods like addEventListener(), or set an event handler property.

js
addEventListener("cut", (event) => {});

oncut = (event) => {};

Event type

Examples

js
window.addEventListener("cut", (event) => {
  console.log("cut action initiated");
});

Specifications

Specification
Clipboard API and events
# clipboard-event-cut
HTML
# handler-oncut

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
cut event

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

See also