HTML onafterprint Attribute
Definition and Usage
onafterprint attribute fires when a page has started printing,
or if the print dialogue box has been closed.
onafterprint attribute is often used together with
onafterprint attribute is part of the Event Attributes, and can be used on the following element:
<body onafterprint="myFunction()">Try it Yourself »
|onafterprint||63||Yes||Yes||Not supported||Not supported|
Note: In IE, the onafterprint attribute occurs before the print dialogue box, instead of after.