From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/api/document/cut_event/index.html | 76 ++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/ja/web/api/document/cut_event/index.html (limited to 'files/ja/web/api/document/cut_event') diff --git a/files/ja/web/api/document/cut_event/index.html b/files/ja/web/api/document/cut_event/index.html new file mode 100644 index 0000000000..eb69508411 --- /dev/null +++ b/files/ja/web/api/document/cut_event/index.html @@ -0,0 +1,76 @@ +--- +title: 'Document: cut イベント' +slug: Web/API/Document/cut_event +tags: + - API + - Clipboard API + - Cut + - Document + - Event + - Reference + - Web +translation_of: Web/API/Document/cut_event +--- +
{{APIRef}}
+ +

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

+ + + + + + + + + + + + + + + + + + + + +
バブリングあり
キャンセル
インターフェイス{{domxref("ClipboardEvent")}}
イベントハンドラープロパティ{{domxref("HTMLElement/oncut", "oncut")}}
+ +

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

+ +

+ +
document.addEventListener('cut', (event) => {
+    console.log('cut action initiated')
+});
+ +

仕様書

+ + + + + + + + + + + + + + +
仕様書状態
{{SpecName('Clipboard API', '#clipboard-event-cut')}}{{Spec2('Clipboard API')}}
+ +

ブラウザーの互換性

+ + + +

{{Compat("api.Document.cut_event")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf