<script>
function Saveit(){
temp.location=event.srcElement.src //在隐藏帧中加载图片
//100毫秒后在id为temp的隐藏帧上执行saveas命令
setTimeout('temp.document.execCommand("saveas")',100)
}
</script>
<iframe id="temp" style="display:none"></iframe>
<img src="E:\chart.png" onClick="Saveit()">
参考资料:非本人