Baseline Widely Print media
Print events
An alternative to @media print queries, the beforeprint and afterprint events allow you to change the page for printing and restore the page after printing.
Baseline Status
Widely Available
Since 2019-09-19
First Core Launch
Firefox 6
2011-08-16
Core-3 Stability
2,956d (8.1y)
Last: Safari (2019-09-19)
BCD Keys Mapped
2
Group: Print media
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Firefox | desktop | 6 | 2011-08-16 |
| Firefox for Android | mobile | 6 | 2011-08-16 |
| Edge | desktop | 12 | 2015-07-29 |
| Chrome Android | mobile | 63 | 2017-12-05 |
| Chrome | desktop | 63 | 2017-12-06 |
| Safari | desktop | 13 | 2019-09-19 |
| Safari on iOS | mobile | 13 | 2019-09-19 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.Window.afterprint_event | DOM API | 2,956d (8.1y) |
| api.Window.beforeprint_event | DOM API | 2,956d (8.1y) |