HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML onbeforeprint Attribute

HTML onbeforeprint Attribute



The onbeforeprint attribute fires when a page is about to be printed. It is used in combination with the onafterprint attribute.


Used With:-


Elements Event
body onbeforeprint




Its syntax is:- < element onbeforeprint="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML