more on portfolio









January 2009
M T W T F S S
« May «-»  
 1234
567891011
12131415161718
19202122232425
262728293031  






 


How to: Prompt out the ‘SAVE AS’


I noticed that most IT dummies does not even know how to right click and image to save. And so, with many hours spending on Yahoo search engine… I found this…
<script>
function saveImageAs (imgOrURL)
{
if (typeof imgOrURL == 'object')
imgOrURL = imgOrURL.src;
window.win = open (imgOrURL);
setTimeout('win.document.execCommand("SaveAs")', 500);
}
</script>

<A href="#" onclick="saveImageAs(document.getElementById('embedImage')); return false" >save image</A>
<img id="embedImage" src="IMAGEFILE.JPG">
Source: www.arunma.com






Leave a Reply