HTML onafterprint Event Attribute
Try it yourself »
Definition and Usage
The onafterprint attribute fires when a page has started printing, or if the print dialogue box has been closed.
Tip: The onafterprint attribute is often used together with the onbeforeprint attribute.
|onafterprint||Not supported||Yes||Yes||Not supported||Not supported|
Note: In IE, the onafterprint attribute occurs before the print dialogue box, instead of after.
Differences Between HTML 4.01 and HTML5
The onafterprint attribute is new in HTML5.
|script||The script to be run on onafterprint|
|Supported HTML tags:||<body>|
HTML DOM reference: onafterprint event
HTML Event Attributes
Thank You For Helping Us!
Your message has been sent to W3Schools.