Solved

How to make an image link prompt to save?

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
[Probably Simple] Responsive CSS Layout Question 4 47
Link SQL table to Webpage 9 39
Modify Table Width 6 14
Gradient CSS 4 14
As a result of several questions about how to use Bootstrap I thought it would be a good idea to write down the development aspect of creating a Bootstrapped website in as little time as possible. Part 1 of this article will only concentrate on g…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to style a decorative dropcap for the first letter in a paragraph using CSS. In CSS, create a new paragraph class by typing "p.fancy": Then, to style only the first letter of the first sentence, include the ps…
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)

762 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

20 Experts available now in Live!

Get 1:1 Help Now