天天看點

如何在頁面内制作一個可以實作'另存為'的連結

<OBJECT classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 id=WebBrowser width=0>

</OBJECT>

<input οnclick=document.all.WebBrowser.ExecWB(1,1) type=button value=打開 name=Button1>

<input οnclick=document.all.WebBrowser.ExecWB(4,1) type=button value=另存為 name=Button2>

<input οnclick=document.all.WebBrowser.ExecWB(10,1) type=button value=屬性 name=Button3>

<input οnclick=document.all.WebBrowser.ExecWB(6,1) type=button value=列印 name=Button>

<input οnclick=document.all.WebBrowser.ExecWB(8,1) type=button value=頁面設定 name=Button4>

<input οnclick=window.location.reload() type=button value=重新整理 name=refresh>

<input οnclick="window.external.ImportExportFavorites(true,'');" type=button value=導入收藏夾 name=Button5>

<input οnclick="window.external.ImportExportFavorites(false,'');" type=button value=導出收藏夾 name=Button32>

<input οnclick="window.external.AddFavorite(location.href, document.title)" type=button value=加入收藏夾 name=Button22>

<input οnclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夾 name=Submit2>

<input οnclick='window.location="view-source:" + window.location.href' type=button value=檢視源檔案 name=Button7>

<input οnclick="window.external.ShowBrowserUI('LanguageDialog', null)" type=button value=語言設定 name=Button6>

<input οnclick=history.go(1) type=submit value=前進 name=Submit>

<input οnclick=history.go(-1) type=submit value=後退 name=Submit2>

繼續閱讀