We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

window.onafterprint Redirect 1


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


window.onafterprint = event handling code


Some browsers (including Firefox 6 and later and Internet Explorer) send beforeprint and afterprint events to let content determine when printing may have occurred. You can use this to adjust the user interface presented during printing (such as by displaying or hiding user interface elements during the print process).

The afterprint event is raised after the user prints or aborts a print dialog.


Not part of any specification.

Browser compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support Not supported 6.0 (Yes) Not supported Not supported
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
? ? ? ? ? ?

See also

Document Tags and Contributors

Last updated by: Sheppy,