<img border=”0″ onclick=”window.print();” src=”/images/PrintIcon.gif” style=”cursor:hand;” />
(Replace the text /images/PrintIcon.gif with the location of an icon in your site.)
A better application of this idea is to first create a page that renders a print preview of the information you want to print. This print preview will look similar to the original page but will not contain navigation items, header images, or other page clutter. Furthermore, the data can be formatted to fit cleanly on 8.5″ x 11″ paper. Embed the print icon in the print preview page and allow users to print from there.