<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>

解决方案 »

  1.   

    ■打开■  
    <input name=Button onClick=document.all.WebBrowser.ExecWB(1,1) type=button value=打开>  
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>  
    ■另存为■  
    <input name=Button onClick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存为>
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>  
    ■属性■  
    <input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性>
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>  
    ■打印■  
    <input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印>
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>  
    ■页面设置■  
    <input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置>
    <OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0></OBJECT>  
    ■刷新■  
    <input type=button value=刷新 name=refresh onclick="window.location.reload()">  
      

  2.   

    <body oncontextmenu="document.execCommand('SaveAs'); return false">