onAfterPrint

印刷データが作成された後に発生するイベントです。Windows版Internet Explorerのみ利用することができます。

構文

オブジェクト.onafterprint = "イベント発生時の処理"

例文

<html>
 <head>
  <title>onAfterPrint</title>
  <script type="text/javascript"><!--
  window.onload = function() {
   document.body.onafterprint = function(){
    document.getElementById("result").innerHTML = "Before Print !!";
   }
  }
  // --></script>
 </head>
 <body>
 <form>
  <input type="button" value="印刷" onClick="window.print()">
 </form>
 <div id="result"></div>
 </body>
</html>

関連記事

スポンサーリンク

REGR_SXX関数 回帰モデルの統計的有効性を評価できる値を返す

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る