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

[Whatwg] Request for HTML-only print link

From: Sander <html5@zoid.nl>
Date: Sat, 28 Jul 2007 05:23:15 +0200
Message-ID: <46AAB6A3.5090505@zoid.nl>
Hello,

I'm not sure whether this has been requested before, but the link to the 
archives of this list seems to be broken at the moment, so I give it a 
try...

I'd like to see an extension of the hyperlink to give it an HTML-only 
print function. Nowadays making a print link available from within a 
website always involves client-side scripting. This dependency should 
not be necessary for something like printing as it is basic 
functionality in most browsers (not sure about mobile devices though).

I can think of two ways, using existing attributes:
- target="_print"
- using some sort of pseudo-protocol: href="print:#"

In both cases the URL of the href attribute could lead to another 
document, which is probably not what the visitor wants, but this is also 
possible with the current technique. I'm not sure whether this is a good 
thing or not.
In addition, linking to a node inside the document could be used to only 
print that node (#content).

My personal favorite would be the pseudo-protocol as I think this 
function is more inline with that of the email link.

cheers,
Sander

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070728/a69728f2/attachment.htm>
Received on Friday, 27 July 2007 20:23:15 UTC

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