Window: cut イベント

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.

cut イベントは、ユーザーがブラウザーのユーザーインターフェイスから切り取り操作を実行したときに発生します。

バブリング あり
キャンセル
インターフェイス ClipboardEvent
イベントハンドラープロパティ oncut

このイベントの本来の対象は、切り取り操作の意図の対象である Element です。このイベントを Window インターフェイス上で待ち受けし、キャプチャやバブリングの局面で処理することができます。このイベントの局面について完全な詳細は、 Element: cut イベントを参照してください。

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

仕様書

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

ブラウザーの互換性

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

関連情報