1. 開発者向けのウェブ技術
  2. Web API
  3. Window
  4. Window: afterprint イベント

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

Window: afterprint イベント

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨2019年9月⁩.

afterprint イベントは、関連する文書の印刷が開始されたか、印刷プレビューが閉じた後に発生します。

バブリング いいえ
キャンセル 不可
インターフェイス Event
イベントハンドラープロパティ onafterprint

addEventListener() の使用例:

js
window.addEventListener("afterprint", (event) => {
 console.log("After print");
});

onafterprint イベントハンドラープロパティの使用例:

js
window.onafterprint = (event) => {
 console.log("After print");
};

仕様書

Specification
HTML
# event-afterprint
HTML
# handler-window-onafterprint

ブラウザーの互換性

関連情報

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /