javscript將部分頁面另存為(僅用于IE)
當前位置:點晴教程→知識管理交流
→『 技術文檔交流 』
保存部分頁面: ![]() <script language="JavaScript"> ![]() ![]() ![]() function doSaveAs(){ ![]() ![]() ![]() b=window.open(); ![]() ![]() ![]() b.document.write("<div style=''display:none''>"); ![]() ![]() ![]() b.document.write(document.getElementById("***").innerHTML); ![]() ![]() ![]() b.document.write("</div>"); ![]() ![]() ![]() b.document.close(); ![]() ![]() ![]() b.document.execCommand("SaveAs",false,"***.html") //doc也可 ![]() ![]() ![]() b.close() ![]() ![]() ![]() } ![]() ![]() ![]() < /script> ![]() ![]() ![]() document.execCommand("SaveAs") 功能僅支持IE內核瀏覽器 ![]() 該文章在 2015/12/5 13:49:55 編輯過 |
關鍵字查詢
相關文章
正在查詢... |