Advertisement
Home Open Editor ❯

HTML onafterprint event Attribute

Example

<body onafterprint="myFunction()">

Try this code ❯

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>
Home Open Editor ❯
Advertisement