Solved

How to make an image link prompt to save?

Posted on 2010-11-24
3
527 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
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: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Mouse event to control image and transparency. 4 34
How to format numbers and letters in nested lists 5 32
Alert after MVC form submitted 1 22
Search Item in Table 2 19
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
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)

860 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