JavaScript DHTML/Event onMethod/onBeforePrint — различия между версиями

Материал из Web эксперт
Перейти к: навигация, поиск
м (1 версия)
 
м (1 версия)
 
(нет различий)

Текущая версия на 10:20, 26 мая 2010

"onBeforePrint" Example

   <source lang="html4strict">
   

<head> <script language="JavaScript">

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

</script> </head> <body onbeforeprint="alert("This page is about to be printed")">

Some body Content to print.

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

</body> </html>


     </source>