The WindowEventHandlers.onafterprint property sets and returns the onafterprint EventHandler for the current window.
The property onbeforeprint sets and returns the onbeforeprint event handler code for the current window.