Printing button to print different page
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:
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?
<a href="##" onclick="window.print()"> Click here to download the printable version</a>