Preferred modern pattern — the beforeprint event targets the window.
beforeprint
window
Lines: 0 | Characters: 0