W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2005

[whatwg] [html5] window.print() undefined

From: Matthew Raymond <mattraymond@earthlink.net>
Date: Tue, 19 Jul 2005 07:12:22 -0400
Message-ID: <42DCE016.1070709@earthlink.net>
Christian Biesinger wrote:
> Matthew Raymond wrote:
>>   I know this isn't how you meant it, but this all seems a bit user
>>hostile. The user sees something on the screen he/she wants to print,
>>but an event is called at the last minute that changes the content to
>>something else 
> 
> You can already do that with CSS...
> 
> @media print { html { display:none; } }

   ...And you can undo it from your user stylesheet. Furthermore, in
Firefox you can turn styling off entirely. Easy as cake. (Hmm... Wait!
Doesn't turn off styling in print preview. Instead, it uses the last
selected style. I'll have to file a bug on that one...)

   Now tell me, how do I do the same with an AJAX application that can
use before and after print events?
Received on Tuesday, 19 July 2005 04:12:22 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:42 UTC