javaScript操作頁面對象組件

今天在網上閒逛,發現這篇文章, 還沒仔細看,先收藏起來,以備日後所用:

<OBJECT id=WebBrowser height=0 width=0 classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2></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>
<INPUT οnclick="document.execCommand('Cut')" type=button value=剪切>
<INPUT οnclick="document.execCommand('Copy')" type=button value=拷貝>
<INPUT οnclick="document.execCommand('Paste')" type=button value=粘貼>
<INPUT οnclick="document.execCommand('Undo')" type=button value=撤消>
<INPUT οnclick="document.execCommand('Delete')" type=button value=刪除>
<INPUT οnclick="document.execCommand('Bold')" type=button value=黑體>
<INPUT οnclick="document.execCommand('Italic')" type=button value=斜體>
<INPUT οnclick="document.execCommand('Underline')" type=button value=下劃線>
<INPUT οnclick="document.execCommand('stop')" type=button value=停止>
<INPUT οnclick="document.execCommand('SaveAs')" type=button value=保存>
<INPUT οnclick="document.execCommand('Saveas',false,'c://test.htm')" type=button value=另存爲>
<INPUT οnclick="document.execCommand('FontName',false,fn)" type=button value=字體>
<INPUT οnclick="document.execCommand('FontSize',false,fs)" type=button value=字體大小>
<INPUT οnclick="document.execCommand('refresh',false,0)" type=button value=刷新>
<INPUT οnclick=window.location.reload() type=button value=刷新>
<INPUT οnclick=history.go(1) type=button value=前進>
<INPUT οnclick=history.go(-1) type=button value=後退>
<INPUT οnclick=history.forward() type=button value=前進>
<INPUT οnclick=history.back() type=button value=後退>
<INPUT οnclick='window.external.ImportExportFavorites(true,"http://localhost/");' type=button value=導入收藏夾>
<INPUT οnclick='window.external.ImportExportFavorites(false,"http://localhost/");' type=button value=導出收藏夾>
<INPUT οnclick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type=button value=整理收藏夾>
<INPUT οnclick="window.location = 'view-source:'+ window.location.href" type=button value=查看源文件>
<INPUT οnclick="window.external.ShowBrowserUI('LanguageDialog', null)" type=button value=語言設置>
<INPUT οnclick="window.external.AddFavorite('http://www.fashionme.net/', '自由,時尚')" type=button value=加入收藏夾>
<INPUT οnclick="window.external.addChannel('http://blog.csdn.net/arcow/')" type=button value=加入到頻道>
<INPUT οnclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://blog.csdn.net/arcow')" type=button value=設成主頁>  
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章