Solved

How to make an image link prompt to save?

Posted on 2010-11-24
3
531 Views
Last Modified: 2012-05-10
Hello,

I am trying to link some images in my HTML website, but when I link the image they only bring the user to another page in IE that loads the image for them, from which they can right-click and save-as.

I am trying to avoid that extra step, how can I have it so that when the user clicks on the image link, to prompt them to save?

Thanks.
0
Comment
Question by:mirde
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 10

Expert Comment

by:hosneylk
ID: 34210188
0
 
LVL 44

Accepted Solution

by:
scrathcyboy earned 250 total points
ID: 34213445
The "Save As" prompt is governed by THEIR browser on their machine -- your web page cannot override the default behaviour that they have chosen for their browsers on their computers.

It is all governed by what the file EXTENSION is -- if its HTML, HTM, JPG, PNG or other standard web extensions, they have set up their browser's default actions for those file extensions.

Therefore the only way you can override their browsers' default actions is to CHANGE the file extension to something their browser doesn't recognize -- HTX for a web page, JPE for an image would be good examples.  Then you have to tell them to change the extension back again to the right one -- which ends up being more hassle for the user.
0
 

Author Closing Comment

by:mirde
ID: 34264203
After fighting with it for awhile, it seems your answer to it is correct and is way to complicated to do that, changing the extension will do.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question