javascript thread: Re: document.execCommand('SaveAs')
Justin,
<SCRIPT language="JavaScript">
function saveImageAs (imgOrURL) {
if (typeof imgOrURL == 'object')
imgOrURL = imgOrURL.src;
window.win = open (imgOrURL);
setTimeout('win.document.execCommand("SaveAs")', 500);
}
</script>
<BODY>
check this
<A HREF="javascript: void 0" ONCLICK="saveImageAs(document.binder); return
false">save image</A> <IMG NAME="binder" SRC="binder.jpg">
</BODY>
hope this will help u
|





