HTML | onafterprint Event Attribute
The onafterprint attribute works when a page has started printing, or if the print dialogue box has been closed. This attribute is used together with the onbeforeprint attribute.
<element onafterprint = "script">
Attribute Value: This attribute contains single value script which works when onafterprint event attribute called. This attribute is associated with <body> tag.
Note: This attribute is new in HTML 5.
Supported Browsers: The browser supported by onafterprint attribute are listed below:
- Chrome 63.0 and above
- Internet Explorer
- Safari: Not supported
- Opera: Not supported
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.