--- title: 'Window: paste イベント' slug: Web/API/Window/paste_event tags: - API - Event - Reference - Web - Window - paste - イベント translation_of: Web/API/Window/paste_event --- <div>{{APIRef}}</div> <p><span class="seoSummary"><strong><code>paste</code></strong> イベントは、ユーザーがブラウザーのユーザーインターフェイスから「貼り付け」操作を実行したときに発生します。</span></p> <table class="properties"> <tbody> <tr> <th scope="row">バブリング</th> <td>あり</td> </tr> <tr> <th scope="row">キャンセル</th> <td>可</td> </tr> <tr> <th scope="row">インターフェイス</th> <td>{{domxref("ClipboardEvent")}}</td> </tr> <tr> <th scope="row">イベントハンドラープロパティ</th> <td>{{domxref("HTMLElement/onpaste", "onpaste")}}</td> </tr> </tbody> </table> <p>このイベントの本来の対象は、貼り付け操作を意図する対象である {{domxref("Element")}} です。このイベントを {{domxref("Window")}} インターフェイス上で待ち受けし、キャプチャやバブリングの局面で処理することができます。このイベントの局面について完全な詳細は、 <a href="/ja/docs/Web/API/Element/paste_event">Element: paste イベント</a>を参照してください。</p> <h2 id="Examples" name="Examples">例</h2> <pre class="brush: js">document.addEventListener('paste', (event) => { console.log('paste action initiated') });</pre> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <thead> <tr> <th scope="col">仕様書</th> <th scope="col">状態</th> </tr> </thead> <tbody> <tr> <td>{{SpecName('Clipboard API', '#clipboard-event-paste')}}</td> <td>{{Spec2('Clipboard API')}}</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <p>{{Compat("api.Window.paste_event")}}</p> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>関連イベント: {{domxref("Window/cut_event", "cut")}}, {{domxref("Window/copy_event", "copy")}}</li> <li>{{domxref("Element")}} を対象としたこのイベント: {{domxref("Element/paste_event", "paste")}}</li> <li>{{domxref("Document")}} を対象としたこのイベント: {{domxref("Document/paste_event", "paste")}}</li> </ul>