onbeforeprintイベント
onbeforeprintイベントは、印刷ダイアログボックスが開く前に発生するイベントです。 Eventインターフェイスのイベントタイプです。
safari、operaは対応していません。
似たイベントにonafterprintイベントがあります。
Syntax
in HTML
<tagelement onbeforeprint="function()">
in JavaScript
object.onbeforeprint = function(){ };
object.addEventListener("beforeprint", script_);
備考(Remarks)
Bubbles | no |
Cancelable | no |
Interface | Event |
Supported HTML Elements | <body> |
関連(Related)
HTML、CSS、DOMの印刷に関する用途一覧です。
HTML
CSS
DOM
- インターフェイス
- イベント
- afterprint、 beforeprint
- プロパティ
- メソッド