onafterprint (HTML attribute)

Syntax

onafterprint="clearPrintData();"

Description

After the user has set the page to print (either by using a menu command or a keyboard shortcut), and the print dialogue has appeared, this event fires. Note that it is also fired if simply bringing up a .print preview’.

Value

No fixed value - could be a call to one or more defined functions or a simple alert() statement.

Compatibility

Non-standard event defined by Microsoft for use in Internet Explorer. May work in some other browsers but cannot be reliably used. Compatibility for this non-standard attribute not tested.

User-contributed notes

There are no comments yet.

Related Products