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

Tab Atkins Jr. jackalmage at gmail.com
Mon Dec 28 06:25:33 PST 2009


On Mon, Dec 28, 2009 at 7:31 AM, Markus Ernst <derernst at gmx.ch> wrote:
> In-page print buttons typically appear in pages authored in a
> 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.

I've had design requirements to include a print button in pages.
Apparently many users *expect* such, and don't realize they can print
from the File->Print option (and/or don't realize that this can print
a printer-friendly version automatically).

I include print stylesheets, so all this button ever does is call
window.print() for them.

~TJ



More information about the whatwg mailing list