Results 1 to 3 of 3

Thread: Send to Printer/Print Friendly

  1. #1
    Join Date
    Dec 2006

    Send to Printer/Print Friendly

    what is code that i can hyperlink text that says "print friendly" and someone can click on it and send the current page to print on the printer?

  2. #2
    Join Date
    Jan 2005
    Frankfort, KY, USA
    Do you mean some script that automatically causes the page to print, or a method to make the page "printer friendly"?

    Print script: http://www.mediacollege.com/internet...age/print.html
    Creating a printer-friendly page: http://alistapart.com/articles/goingtoprint/

  3. #3
    Join Date
    Sep 2005
    I think you are looking for

    <a href="#" onclick="window.print();">Print Page</a>
    (Of course to be accessible you should take the event handler out of the html and have it in a separate js file and have the link actually go to a printer friendly version.)

    Then to make it printer friendly you can use a print style sheet

    <link rel="stylesheet" type="text/css" media="print" href="print.css" />
    Last edited by sincilite; 12-11-2006 at 10:30 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center

Recent Articles