View Full Version : javascript:window.print() question

12-07-2004, 12:15 AM
Alright is it possible to modify the javascript:window.print() script to print a different file then what you are seeing. What I am trying to accomplish is to print a "printer friendly" version of a page from the normal page without having to display it then print it. Is that possible to do with that script or any other. Give ya a heads up I know extremely little about javascript so any help is appreciated. Thanks

12-07-2004, 02:06 AM

12-07-2004, 02:25 AM
The first link there does pretty much what I'm looking for. However when I tried to print it, It opened up a message box to download the file first. Anyway around that?

12-07-2004, 02:28 AM
Nevermind. I found if you link it to a .html/.htm file it works without the download. Thanks a million!!!

12-07-2004, 02:28 AM
put this up in your head

<link rel=alternate media=print href="print_linecard.html">

and use this as your print link:

<a href="print_linecard.html" onClick="window.print();return false;">Print me</a>

just change the urls, of course