W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2009

[whatwg] window.print() when printing is not supported

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 28 Dec 2009 12:07:46 -0500
Message-ID: <4B38E5E2.1080407@mit.edu>
On 12/28/09 8:31 AM, Markus Ernst wrote:
> printer-unfriendly way, such as using frames or a table layout, lacking
> a printer stylesheet. Often the in-page print button just opens a
> printer-friendly version of the page, without even invoking the print()
> method.

The most common print button I run into is on airline web sites (for 
printing boarding passes).  Of those, the ones I've looked into seem to 
be using frames and the print button just calls window.print() on the 
right frame.  That frame is already printer-friendly enough.

Come to think of it, airline boarding passes are the only case in which 
I print things from the web using either print buttons or the browser's 
"print" functionality.  Are there other common printing use cases?  What 
are they?

-Boris
Received on Monday, 28 December 2009 09:07:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:54 UTC