JavaScript Reference/Event Handlers Reference/onAfterPrint

Материал из Web эксперт
Версия от 11:22, 26 мая 2010; Admin (обсуждение | вклад) (1 версия)
(разн.) ← Предыдущая | Текущая версия (разн.) | Следующая → (разн.)
Перейти к: навигация, поиск

"onAfterPrint" Example

   <source lang="javascript">
   

<head> <script language="JavaScript">

  function function1() {
      window.print(); 
  } 

</script> </head>

  <body onafterprint="alert("the printing of this page is complete")">

Some body Content to print.

  <form>
  <input type="button" value="Print" onclick="function1()">
  </form>

</body>


     </source>
   
  


"onAfterPrint" is applied to

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Applied_To |<body> <frameset> | | |window | +----------------+--------------------------------------------------------------+

     </source>
   
  


"onAfterPrint" Properties

   <source lang="javascript">

+----------------+--------------------------------------------------------------+ | Properties |altKey altLeft | | |button cancelBubble | | |clientX clientY | | |ctrlKey ctrlLeft | | |offsetX offsetY | | |returnValue screenX | | |screenY shiftKey | | |shiftLeft srcElement | | |type x | | |y | +----------------+--------------------------------------------------------------+

     </source>
   
  


"onAfterPrint" Syntax and Note

   <source lang="javascript">

Note:

This event fires when the document prints or print previews.

     </source>