Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Download image

Status
Not open for further replies.

help120

Technical User
Apr 15, 2001
198
US
I want to put a link on my site that when they click it a window will open up (just like you right click and went to save as) so that the user can save the image to their hard drive. Is their an html tag I can put into an href?
 
Depends what you are wanting to do here. If you want to open a save dialog box when the user clicks an image i dont think you will be able to do that as it is up to the user top choose to save an image. However if you want to link to a seperate web page with just the image on try..
Code:
<a href=&quot;#&quot; onclick=&quot;window.open('image.gif'); return false;&quot;><img src&quot;image.gif&quot;></a>
doubt this is really what your lookign for though...

good luck

rob
 
You know when you click a link to a zip file it asks you if you want to save it or cancel? I want to do the same thing for an image.
 
if you have an ftp server with anonymous login, you could change http:// to ftp:// and that would do it (i think)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top