View Single Post
  #1 (permalink)  
Old 05-25-07, 04:33 PM
pcinfoman pcinfoman is offline
Coding Addict
 
Join Date: Jan 2006
Posts: 264
Thanks: 0
Thanked 0 Times in 0 Posts
Help with javascript print code?

I am hoping somebody here can help me out with a bit of javascript code.

What I want to do is create a text link the pops up the "Print" dialog box but instead of printing the web page the person is on, I want it to print the url of my choice.

For example, I have a thumbnail page on my site, I have the images linking to larger versions of the same image. However, I want to add a text link beneath the image that says "Print This Image" and when it is clicked I want it to print the image at http://www.mysite.com/images/image1.jpg instead of printing the page they are on.

Can this be done? If so, can you provide the javascript to make this happen?
Reply With Quote