Solved

How to make an image link prompt to save?

Posted on 2010-11-24
3
523 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now