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/window/paste_event/index.html | 76 ++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/ja/web/api/window/paste_event/index.html (limited to 'files/ja/web/api/window/paste_event/index.html') diff --git a/files/ja/web/api/window/paste_event/index.html b/files/ja/web/api/window/paste_event/index.html new file mode 100644 index 0000000000..0697458a24 --- /dev/null +++ b/files/ja/web/api/window/paste_event/index.html @@ -0,0 +1,76 @@ +--- +title: 'Window: paste イベント' +slug: Web/API/Window/paste_event +tags: + - API + - Event + - Reference + - Web + - Window + - paste + - イベント +translation_of: Web/API/Window/paste_event +--- +
{{APIRef}}
+ +

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

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

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

+ +

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

仕様書

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

ブラウザーの互換性

+ + + +

{{Compat("api.Window.paste_event")}}

+ +

関連情報

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