Forum Moderators: open

Message Too Old, No Replies

Link to print another page

         

jozomannen

5:27 pm on Sep 6, 2005 (gmt 0)

10+ Year Member



I have a page with some content. But I want to add an image on www.site.com/page1.html and when you click on that image, the printer will print out: www.site.com/printerfriendly/page1.html

Is that possible?

jatar_k

8:23 pm on Sep 6, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



the only thing I can really find is the window.print() function. To use that you would have to have a 'view printer friendly' link and then you could have the print function using the above on that page.

jozomannen

9:40 pm on Sep 6, 2005 (gmt 0)

10+ Year Member



That's what I thought too :(

Thanks for the help anyways.

jozomannen

11:35 am on Sep 7, 2005 (gmt 0)

10+ Year Member



Is there any way to load the print-javascript automatically. So I have a printer-button which links to www.site.com/printerfriendly/page1.html and then the printer proporties (CTRL+P) aprears automatically?

jatar_k

5:43 pm on Sep 7, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



try testing it in the onload in the target page, might work, not sure

jozomannen

9:46 pm on Sep 7, 2005 (gmt 0)

10+ Year Member



I used the onLoad on an image, it worked perfectly, thanks a lot!