This method involves hard-coding the link to the printer version.
You can hard code ALL of the data this way:
Alternatively, you can let the print.php script determine the
URL of the page to be grabbed using $HTTP_REFERER. In this case,
your may use the same link throughout your website.
This method is an alternative to the HTML method, and allows you to
control the HTML for the Printer Version button and link in a central
that you want the Printer Version button to appear:
The script allows you to specify a particular "Printer Version"
button. The default button is "printmain.gif" but you can
override this for a particular webpage by changing the word "main"
to some other word. (e.g. if you want to use "printblack.gif"
button instead, change the word "main" to "black")
2. Create a file called print.js.
The showbutton() function creates the HTML to show the printer version
button and link to the printer version.
The showprinterversion() function opens a new window to show the printer
version. You can customize the size and features of the window here.
This function automatically URL encodes the URL of the page to be grabbed,