W3C home > Mailing lists > Public > whatwg@whatwg.org > March 2010

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

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 26 Mar 2010 15:26:48 -0700
Message-ID: <dd0fbad1003261526h138e4497y461e8ff52a268793@mail.gmail.com>
On Fri, Mar 26, 2010 at 2:40 PM, Ian Hickson <ian at hixie.ch> wrote:
> On Fri, 26 Mar 2010, Philipp Serafin wrote:
>> On Mon, Mar 22, 2010 at 10:18 PM, Ian Hickson<ian at hixie.ch> ?wrote:
>>
>> > What could a Web page do that a browser couldn't do better in the same
>> > situation? (The browser could offer a PDF, so having the site offer a
>> > PDF when there's no printer doesn't seem like a good solution.)
>>
>> One scenario could be mobile devices that really have nothing even
>> remotely comparable to a printing functionality. For those, it could
>> make sense to hide "print this page" links to provide more screen real
>> estate.
>>
>> I admit though, that's a rather esoteric use case ...
>
> It's a valid use case, indeed. Probably not enough to justify adding a
> way to detect if the UA usefully supports window.print(), though.

<output type=print value="Print this page">, clearly.

(Tongue-in-cheek suggestion, but hey, it's a declarative solution that
could work.)

~TJ
Received on Friday, 26 March 2010 15:26:48 UTC

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