Skip to: content, navigation

by Ian Lloyd

onbeforeprint (HTML attribute)

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 - does not apply to any browser other than Internet Explorer.

User-contributed notes

There are no comments yet.

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters