'onAfterPrint' Example : onAfterPrint « Event Handlers Reference « JavaScript Reference

'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>

    
      
      








Related examples in the same category

1.'onAfterPrint' Syntax and Note
2.'onAfterPrint' Properties
3.'onAfterPrint' is applied to