onbeforeprint (HTML attribute)

Syntax

onbeforeprint="warnPrintReLength();"

Description

This event fires just after the user has requested a print operation (via menu or keyboard shortcut) but before the print-out actually takes place; it also occurs when the user requests 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