Right click this window and select "view source" in order to copy the source for this script.
Page Printer
This JavaScript code example gives the page viewer the ability to print the page directly from the page. It is button activated. It is generally cross-browser compatible. View the source...