buyrvdirect
12-11-2006, 09:17 AM
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?
|
Click to See Complete Forum and Search --> : Send to Printer/Print Friendly buyrvdirect 12-11-2006, 09:17 AM 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? KDLA 12-11-2006, 09:22 AM 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/javascript/page/print.html Creating a printer-friendly page: http://alistapart.com/articles/goingtoprint/ sincilite 12-11-2006, 09:28 AM 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" /> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |