HTML onbeforeprint event Attribute
Example
<body onbeforeprint="myFunction()">
Meaning
The onbeforeprint attribute is called before a print event. Found only on the body element.
Standard Syntax
<element onbeforeprint="script">
Browser Support
Status
Attribute Values
Value | Description |
---|---|
script | Specifies the script to be run on onbeforeprint. |
Technical Details
Supported HTML elements:
<body>