This example assigns an "onafterprint" event to the body element.
Tip: The keyboard shortcut Ctrl+P prints a page.