Solved

How to make an image link prompt to save?

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
html form layout 4 53
Keyup listener getting fired on initial page load 1 53
Editing .asp website 5 32
Drag & Drop Error 5 32
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

739 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