就像IE中的"文件"->"另存为"->"网页,全部 *.htm *.html",生成并把图片之类文件放到TitleName_files目录下
类似document.execCommand("SaveAs",true,aaa.htm) 但这个方法不生成TitleName_files 也不保存图片,
由于特殊需求 也不能用mht文件保存
先谢谢了

解决方案 »

  1.   

    是调用IE的保存功能,类似 document.execCommand("SaveAs",true,aaa.htm) 或者以前的 .ExecWB(4,1) ,
    但document.execCommand("SaveAs",true,aaa.htm) 只保存网页,而直接在菜单上点击另存为 会自动生成XXX_file目录
      

  2.   

    只能调用 document.execCommand("SaveAs",true,aaa.htm) !
    这个方法很多浏览器不支持!
    浏览器安全限制,是不允许IO操作的!你的功能可以用下载的方式来实现!
      

  3.   

    这个可以保存全部:<OBJECT   id="theforever"   classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"   height="0"   width="0"></OBJECT>
    <input   onClick="document.getElementById('theforever').ExecWB(4,1)"   type="button"   value="另存为">