以前无忧一位版主Flashsoft写的<iframe id="frame1" style="display:none"></iframe>
<script language="JScript">
var n=0;
function go(url){
n==0?new function(){frames("frame1").location=url,n=1}:null;
document.all("frame1").readyState!="complete"?setTimeout(go,10):so();
function so(){frames("frame1").document.execCommand("SaveAs"),n=0};
}
</script>
<img src="images/standard/51js.gif" onclick="go(src)">

解决方案 »

  1.   

    HEHE , 试了一下,不行的。问题就是怎么把网页上面的东西全部的保存下来!!
      

  2.   

    刚开始要求的是要存图片,所以给你的是存图片的全部保存,你试试document.execCommand("SaveAs")
      

  3.   

    下面的试试,不过要弹出窗口的。我在一个帖子中发现的,但是忘了那位大侠的名字了。不好意思
    <INPUT id=button4 onclick="document.execCommand('SaveAs',false,'c:\\index.htm')" type=button value=另存為[指定文件名和路徑] name=button4><BR><INPUT id=button5 onclick="document.execCommand('saveas',false,null)" type=button value=另存為[不指定文件名和路徑] name=button5><BR>
      

  4.   

    <OBJECT id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2" height="0" width="0"></OBJECT> 
    <input onClick="document.all.WebBrowser.ExecWB(4,1)" type="button" value="另存为">
      

  5.   

    document.all.WebBrowser.ExecWB(4,1)这种方法确实可以,但是这个就必须降低ActiveX的安全性。客户不同意。