JavaScript DHTML/Event onMethod/onBeforePrint — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
Admin (обсуждение | вклад) м (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>