This example demonstrates how to assign an "onbeforeprint" event to a body element.
Try to print this document