JavaScript Reference/Event Handlers Reference/onAfterPrint — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 08:22, 26 мая 2010
Содержание
"onAfterPrint" Example
<head>
<script language="JavaScript">
function function1() {
window.print();
}
</script>
</head>
<body onafterprint="alert("the printing of this page is complete")">
<p>Some body Content to print.</p>
<form>
<input type="button" value="Print" onclick="function1()">
</form>
</body>
"onAfterPrint" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |<body> <frameset> |
| |window |
+----------------+--------------------------------------------------------------+
"onAfterPrint" Properties
+----------------+--------------------------------------------------------------+
| Properties |altKey altLeft |
| |button cancelBubble |
| |clientX clientY |
| |ctrlKey ctrlLeft |
| |offsetX offsetY |
| |returnValue screenX |
| |screenY shiftKey |
| |shiftLeft srcElement |
| |type x |
| |y |
+----------------+--------------------------------------------------------------+
"onAfterPrint" Syntax and Note
Note:
This event fires when the document prints or print previews.