Printing button to print different page
Hey,
I'm still learning and just needed some help. Basically I want to add a link on a webpage, that contains the web-friendly version of a document, so that when you click on the link, it will print the printer-friendly version (a pdf). So far, I've got this:
Code:
<a href="##" onclick="window.print()"> Click here to download the printable version</a>
But when I click it, it prints a blank page with just the URL and the date. Is there something I'm missing? Or is this even possible?