生活随笔
收集整理的這篇文章主要介紹了
input按钮中的onclick事件
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
input按鈕onclick事件大全
<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="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.jenfy.cn', 十萬個為什么)" type=button value=加入收藏夾>?? <INPUT οnclick="window.external.addChannel('http://www.jenfy.cn')" type=button value=加入到頻道>
轉載于:https://www.cnblogs.com/hsx1996/p/11176748.html
總結
以上是生活随笔為你收集整理的input按钮中的onclick事件的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。