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