HTML onbeforeprint 이벤트 속성
예시
페이지가 인쇄될 때 JavaScript를 실행합니다.
<body onbeforeprint="myFunction()">
정의 및 사용
onbeforeprint 속성은 페이지가 인쇄될 때 발생합니다(인쇄 대화 상자가 나타나기 전).
팁: onbeforeprint 속성은 종종 onafterprint 속성 과 함께 사용됩니다 .
브라우저 지원
Event Attribute | |||||
---|---|---|---|---|---|
onbeforeprint | 63 | Yes | Yes | Not supported | Not supported |
통사론
<element onbeforeprint="script">
속성 값
Value | Description |
---|---|
script | The script to be run on onbeforeprint |
기술적 세부 사항
지원되는 HTML 태그: | <본체> |
---|
관련 페이지
HTML DOM 참조: onbeforeprint 이벤트
❮ HTML 이벤트 속성