<script>
function ifsaveas()
{
if (event.button==1)
document.execCommand('Saveas');
}
document.onmousedown=ifsaveas;
</script>
bayern

解决方案 »

  1.   

    <a id="a1" href="mytext.txt" onclick="newwin=window.open(this.href,'','');newwin.document.execCommand('saveas',true,'d:');newwin.close();window.location.reload()">down</a>
      

  2.   

    楼上的怎么存的是整个网页,
    我要的是存链接的对应文件(.txt  .jpg  .gif)
      

  3.   

    楼上的两位  怎么存的是整个网页,
    我要的是存链接的对应文件(.txt  .jpg  .gif)