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 September 2019.
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 |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
afterprint event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
関連情報
- 関連イベント:
beforeprint