save jpeg rather than view jpeg

liunx

Guest
For some large artwork on my website I would like the default behaviour when a link is clicked to pop up a "save as" dialogue box and not open the jpeg in the same window which is the default behaviour. I would also like this to happen for some mp3's I have on my site. Instead of opening media player I would like them to be saved to a users hardddrive.<br />
<br />
I am aware that a a user can save the file on a right click, but I prefer it if they didn't have too.<br />
<br />
I only have very basic hosting and there is no way I can change the sever setup.<br />
<br />
Is this possible?<!--content-->look into execCommand() (<!-- m --><a class="postlink" href="http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/execcommand.asp">http://msdn.microsoft.com/workshop/auth ... ommand.asp</a><!-- m -->)<br />
<br />
Last time when I checked Mozilla does not allow to open Save As dialogue with this<!--content-->Alternatively, try a "force Download <!--more-->" script like this (PHP):<br />
<br />
<!-- m --><a class="postlink" href="http://www.infinitypages.com/research/Download">http://www.infinitypages.com/research/Download</a><!-- m --> <!--more-->.htm<br />
<br />
Adam<!--content-->
 
Back
Top