This will work for IE only (because execCommand() is supported under IE only):
<html>
<body>
<script>
var nn=0;
function init(obj)
{
var ifr=document.createElement
ifr.setAttribute('id','ifr
ifr.style.position = 'absolute';
ifr.style.top = 0;
ifr.style.left = 0;
ifr.style.width = 1;
ifr.style.height = 1;
ifr.frameBorder=0;
ifr.scrolling='no';
ifr.style.visibility = 'hidden';
ifr.src=obj.src;
document.body.appendChild(
obj.ifr=ifr;
}
function save(obj)
{
obj.ifr.contentWindow.docu
}
</script>
<IMG onload="init(this)" onclick="save(this);" id="img1" SRC="2083.jpg">
</body>
</html>
Main Topics
Browse All Topics





by: mattfairwPosted on 2003-08-13 at 07:00:36ID: 9138734
function SaveVarAsFile(someVar){ ext/html", "replace") omeVar) mand('Save As')
edge_base/ view.phtml /aid/5785/ fid/ 53 edge_base/ view.phtml /aid/15995 /fid/ 53 aq.pl?Down load_a_fil e .com/ix/ms g/12222.ht ml edge_base/ view.phtml /aid/1829/ fid/ 126
SaveFrame.document.open("t
SaveFrame.document.write(s
SaveFrame.document.close()
SaveFrame.focus()
SaveFrame.document.execCom
}
see these sites for more details:
http://www.faqts.com/knowl
http://www.faqts.com/knowl
http://www.allmyfaqs.com/f
http://www.intranetjournal
http://www.faqts.com/knowl