Possible Duplicate:
Is it possible to initiate a download prompt in the browser for recognized MIME types using only JavaScript (client-side approach)?
Is there a way to force a browser with a JavaScript routine to save a file as ("save as") after clicking a link? I need for images to be downloaded directly by default and not rendered by the browser.