이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 참여해서 번역을 마치도록 도와 주세요!
English (US)의 문서도 읽어보세요.

The beforeprint event is fired when the associated document is about to be printed or previewed for printing.

Bubbles No
Cancelable No
Interface Event
Event handler property onbeforeprint

Examples

Using addEventListener():

window.addEventListener('beforeprint', (event) => {
  console.log('Before print');
});

Using the onbeforeprint event handler property:

window.onbeforeprint = (event) => {
  console.log('Before print');
};

Specifications

Specification Status
HTML Living Standard Living Standard

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
beforeprint eventChrome Full support 63Edge Full support YesFirefox Full support 6IE Full support YesOpera Full support 50Safari No support NoWebView Android Full support 63Chrome Android Full support 63Firefox Android ? Opera Android Full support 46Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

See also

문서 태그 및 공헌자

태그: 
최종 변경자: mdnwebdocs-bot,