把它写到另新的一个iframe document里面,然后调有iframe window 的save as.

解决方案 »

  1.   

    <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=另存为> 
    保存页面中某一块的数据好象只能使用iframe了.
      

  2.   

    up wangxj0600,这个是保存web页的对话框,有没有common dialog的save as 对话框,每次都是你回答我,谢谢你了:)
    有哪些控件可用在<object>里的,有没有什么资料?
      

  3.   

    请问如何"调用iframe window 的save as"
      

  4.   

    wangxj0600(旁观拍手笑疏狂,疏又何妨,狂又何妨) 's way
      

  5.   

    后退、前进、加入收藏等IE常见操作功能<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=另存为> 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(17,1) type=button value=全选>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(6,6) type=button value=直接打印>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置>
    <input type=button value=刷新 name=refresh onclick="window.location.reload()"> 
    <input type="button" name="Button" value=导入收藏夹 onClick=window.external.ImportExportFavorites(true,"http://localhost");> 
    <input type="button" name="Button3" value=导出收藏夹 onClick=window.external.ImportExportFavorites(false,"http://localhost");> 
    <input name=Button2 onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹> 
    <input name=Submit2 onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夹> 
    <input type=button value=查看源文件  onclick="window.location = 'view-source:'+ window.location.href">
    <input type=button value=语言设置 onclick="window.external.ShowBrowserUI('LanguageDialog', null)"> 
    <input type=button value=前进 onclick=history.go(1)>
    <input type=button value=前进 onclick=history.forward()>  
    <input type=button value=后退 onclick=history.go(-1)>
    <input type=button value=后退 onclick=history.back()>
      

  6.   

    <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=另存为> 
    <input name=Button onClick=document.all.WebBrowser.ExecWB(17,1) type=button value=全选>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(10,1) type=button value=属性>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(6,1) type=button value=打印>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(6,6) type=button value=直接打印>
    <input name=Button onClick=document.all.WebBrowser.ExecWB(8,1) type=button value=页面设置>
    <input type=button value=刷新 name=refresh onclick="window.location.reload()"> 
    <input type="button" name="Button" value=导入收藏夹 onClick=window.external.ImportExportFavorites(true,"http://localhost");> 
    <input type="button" name="Button3" value=导出收藏夹 onClick=window.external.ImportExportFavorites(false,"http://localhost");> 
    <input name=Button2 onclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夹> 
    <input name=Submit2 onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夹> 
    <input type=button value=查看源文件  onclick="window.location = 'view-source:'+ window.location.href">
    <input type=button value=语言设置 onclick="window.external.ShowBrowserUI('LanguageDialog', null)"> 
    <input type=button value=前进 onclick=history.go(1)>
    <input type=button value=前进 onclick=history.forward()>  
    <input type=button value=后退 onclick=history.go(-1)>
    <input type=button value=后退 onclick=history.back()>
      

  7.   

    <input type=button onclick="document.execCommand('SaveAs')">
    你是不是说使用execCommand方式?