Coding a print button script to print printer friendly version

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arieta
    New Member
    • Apr 2010
    • 1

    Coding a print button script to print printer friendly version

    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 script:

    <a href="http://www.mmanager.co m/docs/specs/MM_T.38_IP_Fax_ Solutions_for_A vaya.pdf" onclick="window .print()"> Click here to download the printable version</a>


    But when click it, it prints a blank page with just the URL and the date. Is there something I'm missing?
Working...