input Button使用小技巧

来源:互联网 发布:发布淘宝类目如何选择 编辑:程序博客网 时间:2024/05/01 11:45
  1. <INPUT onclick=document.all.WebBrowser.ExecWB(1,1)type=buttonvalue=打开name=Button1>
  2. <INPUT onclick=document.all.WebBrowser.ExecWB(4,1)type=buttonvalue=另存为name=Button2>
  3. <INPUT onclick=document.all.WebBrowser.ExecWB(10,1)type=buttonvalue=属性name=Button3>
  4. <INPUT onclick=document.all.WebBrowser.ExecWB(6,1)type=buttonvalue=打印name=Button>
  5. <INPUT onclick=document.all.WebBrowser.ExecWB(8,1)type=buttonvalue=页面设置name=Button4>
  6. <INPUT onclick=window.location.reload()type=buttonvalue=刷新name=refresh>
  7. <INPUT onclick="window.external.ImportExportFavorites(true,'');"type=buttonvalue=导入收藏夹name=Button5>
  8. <INPUT onclick="window.external.ImportExportFavorites(false,'');"type=buttonvalue=导出收藏夹name=Button32>
  9. <INPUT onclick="window.external.AddFavorite(location.href, document.title)"type=buttonvalue=加入收藏夹name=Button22>
  10. <INPUT onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)"type=buttonvalue=整理收藏夹name=Submit2>
  11. <INPUT onclick='window.location="view-source:" + window.location.href'type=buttonvalue=查看源文件name=Button7>
  12. <INPUT onclick="window.external.ShowBrowserUI('LanguageDialog', null)"type=buttonvalue=语言设置name=Button6>
  13. <INPUT onclick="document.execCommand('Cut')"type=buttonvalue=剪切>
  14. <INPUT onclick="document.execCommand('Copy')"type=buttonvalue=拷贝>
  15. <INPUT onclick="document.execCommand('Paste')"type=buttonvalue=粘贴>
  16. <INPUT onclick="document.execCommand('Undo')"type=buttonvalue=撤消>
  17. <INPUT onclick="document.execCommand('Delete')"type=buttonvalue=删除>
  18. <INPUT onclick="document.execCommand('Bold')"type=buttonvalue=黑体>
  19. <INPUT onclick="document.execCommand('Italic')"type=buttonvalue=斜体>
  20. <INPUT onclick="document.execCommand('Underline')"type=buttonvalue=下划线>
  21. <INPUT onclick="document.execCommand('stop')"type=buttonvalue=停止>
  22. <INPUT onclick="document.execCommand('SaveAs')"type=buttonvalue=保存>
  23. <INPUT onclick="document.execCommand('Saveas',false,'c:\\test.htm')"type=buttonvalue=另存为>
  24. <INPUT onclick="document.execCommand('FontName',false,fn)"type=buttonvalue=字体>
  25. <INPUT onclick="document.execCommand('FontSize',false,fs)"type=buttonvalue=字体大小>
  26. <INPUT onclick="document.execCommand('refresh',false,0)"type=buttonvalue=刷新>
  27. <INPUT onclick=window.location.reload()type=buttonvalue=刷新>
  28. <INPUT onclick=history.go(1)type=buttonvalue=前进>
  29. <INPUT onclick=history.go(-1)type=buttonvalue=后退>
  30. <INPUT onclick=history.forward()type=buttonvalue=前进>
  31. <INPUT onclick=history.back()type=buttonvalue=后退>
  32. <INPUT onclick='window.external.ImportExportFavorites(true,"http://localhost";);'type=buttonvalue=导入收藏夹>
  33. <INPUT onclick='window.external.ImportExportFavorites(false,"http://localhost";);'type=buttonvalue=导出收藏夹>
  34. <INPUT onclick="window.external.ShowBrowserUI('OrganizeFavorites', null)"type=buttonvalue=整理收藏夹>
  35. <INPUT onclick="window.location = 'view-source:'+ window.location.href"type=buttonvalue=查看源文件>
  36. <INPUT onclick="window.external.ShowBrowserUI('LanguageDialog', null)"type=buttonvalue=语言设置>
  37. <INPUT onclick="window.external.AddFavorite('http://www.jenfy.cn', 十万个为什么)"type=buttonvalue=加入收藏夹>
  38. <INPUT onclick="window.external.addChannel('http://www.jenfy.cn')"type=buttonvalue=加入到频道>
  39. <INPUT onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.jenfy.cn/')"type=buttonvalue=设成主页>
原创粉丝点击