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

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

+ + + + + + + + + + + + + + + + + + + + +
バブリングいいえ
キャンセル不可
インターフェイス{{domxref("Event")}}
イベントハンドラープロパティ{{domxref("WindowEventHandlers/onafterprint", "onafterprint")}}
+ +

+ +

addEventListener() の使用例:

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

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

+ +
window.onafterprint = (event) => {
+  console.log('After print');
+};
+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態
{{SpecName('HTML WHATWG', '#event-afterprint')}}{{Spec2('HTML WHATWG')}}
+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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