이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!
The WindowEventHandlers.onafterprint property sets and returns the onafterprint
EventHandler
for the current window.
Syntax
window.onafterprint = event handling code
Notes
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.
Specification
Not part of any specification.
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | No support | 6.0 | (Yes) | No support | No support |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
? | ? | ? | ? | ? | ? |
See also
window.print
window.onbeforeprint
- Printing
- It's able to do equivalent things in Webkit-based browser with
matchMedia('print')
-
var mediaQueryList = window.matchMedia('print'); mediaQueryList.addListener(function(mql) { if (!mql.matches) { console.log('onafterprint'); }; });
문서 태그 및 공헌자
태그:
이 페이지의 공헌자:
hbloomer,
irvinfly,
teoli,
fscholz,
cpigat,
jsx,
kscarfone,
libreGeekingKid,
deepakyadav,
Sheppy,
ethertank,
trevorh,
fusionchess
최종 변경:
hbloomer,