08/21/02 Updated 11/27/05

How To Add A Print Page Link
Printer Friendly

This is a super-easy little script that you can use to form an automatic print-page link on your site. Just insert this code anywhere in the <BODY> section of your document you want the link to display. This way your visitors can choose to print the page they are viewing. Works as a great little script as well as a reminder to print the page! You might want to add a printer icon for a graphical display.

Below is the script you copy and paste and also a few little icons you can use as an image to the print this page link.

First Example Is With Text Link

<a href='javascript:;' onClick='window.print();return false'>Print this page</a>
Print this page ]

This Example Makes Use of An Image To Print

<a href='javascript:;' onClick='window.print();return false'><img src="Path To Your Image"border="0" width="?" height="?"Alt="Print This Page"></a>

Print This Page

Note of Importance ~ on the above attributes to define your image (height, width and border) Just substitute the "?" with the size in pixels. In regards to the "border="0". If you replace the zero with a 1 or higher, you will have a border around your image.
Border Defined As 1

Below are a few different icons and images you can use. Since our server is Angelfire, it does not allow remote linking so if you use these images you need to save them to your hard drive and upload them to your editor. If you place your cursor over the image, it will give you the pixel size of each image.

73 x 55      32 x 30      33 x 29      34 x 34

On a final note that may sound silly but it has been asked of us. You don't need a printer to add this effect to your pages but the answer is "No", if you do not have a printer attached to your system, you cannot print the page.

W e hope our tutorial was easy to follow and we covered everything in detail. If you have any problems with this or anything else, feel free to consult our FAQ ] and if you can't find the answer there, contact us ].
Rate This Page ]  

Copyright © Consigliere Ltd., All Rights Reserved. 2001-