This example uses the HTML DOM to assign an "onafterprint" event to a body element.
Tip: Keyboard shortcuts, such as Ctrl+P sets the page to print.
Note: The onafterprint event is only supported in Internet Explorer and Firefox.
Note: In IE, the onafterprint event occurs before the print dialogue box, instead of after.