当前位置:Gxlcms > html代码 > html中关于Button.onclick的事件总结分享

html中关于Button.onclick的事件总结分享

时间:2021-07-01 10:21:17 帮助过:56人阅读

html中关于Button.onclick的事件总结分享

  1. <input onclick="document.all.WebBrowser.ExecWB(1,1)" type="button" value="打开" name="Button1">
  2. <input onclick="document.all.WebBrowser.ExecWB(4,1)" type="button" value="另存为" name="Button2">
  3. <input onclick="document.all.WebBrowser.ExecWB(10,1)" type="button" value="属性" name="Button3">
  4. <input onclick="document.all.WebBrowser.ExecWB(6,1)" type="button" value="打印" name="Button">
  5. <input onclick="document.all.WebBrowser.ExecWB(8,1)" type="button" value="页面设置" name="Button4">
  6. <input onclick="window.location.reload()" type="button" value="刷新" name="refresh">
  7. <input onClick="window.external.ImportExportFavorites(true,'');" type="button" value="导入收藏夹" name="Button5">
  8. <input onClick="window.external.ImportExportFavorites(false,'');" type="button" value="导出收藏夹" name="Button32">
  9. <input onClick="window.external.AddFavorite(location.href, document.title)" type="button" value="加入收藏夹" name="Button22">
  10. <input onClick="window.external.ShowBrowserUI('OrganizeFavorites', null)" type="button" value="整理收藏夹" name="Submit2">
  11. <input onclick='window.location="view-source:" + window.location.href' type="button" value="查看源文件" name="Button7">
  12. <input onClick="window.external.ShowBrowserUI('LanguageDialog', null)" type="button" value="语言设置" name="Button6">
  13. <input onClick="document.execCommand('Cut')" type="button" value="剪切">
  14. <input onClick="document.execCommand('Copy')" type="button" value="拷贝">
  15. <input onClick="document.execCommand('Paste')" type="button" value="粘贴">
  16. <input onClick="document.execCommand('Undo')" type="button" value="撤消">
  17. <input onClick="document.execCommand('Delete')" type="button" value="删除">
  18. <input onClick="document.execCommand('Bold')" type="button" value="黑体">
  19. <input onClick="document.execCommand('Italic')" type="button" value="斜体">
  20. <input onClick="document.execCommand('Underline')" type="button" value="下划线">
  21. <input onClick="document.execCommand('stop')" type="button" value="停止">
  22. <input onClick="document.execCommand('SaveAs')" type="button" value="保存">
  23. <input onClick="document.execCommand('Saveas',false,'c:\\Autorun.inf')" type="button" value="另存为">
  24. <input onClick="document.execCommand('FontName',false,fn)" type="button" value="字体">
  25. <input onClick="document.execCommand('FontSize',false,fs)" type="button" value="字体大小">
  26. <input onClick="document.execCommand('refresh',false,0)" type="button" value="刷新">
  27. <input onclick="window.location.reload()" type="button" value="刷新">
  28. <input onclick="history.go(1)" type="button" value="前进">
  29. <input onclick="history.go(-1)" type="button" value="后退">
  30. <input onclick="history.forward()" type="button" value="前进">
  31. <input onclick="history.back()" type="button" value="后退">
  32. <input type="button" value="弹出固定窗口" onClick="javascript:window.open('#','','scrollbars=yes,width=600,height=200')" >
  33. <input type="button" value="没有提示关闭" onclick="window.opener=null;window.close();" />
  34. <input type="button" value="点击进入另一页面" onclick="window.location.href=''" />
  35. <input type="button" value="返回上一页" onclick="javascript:history.go(-1);" />

关于web设计中的命名标准

  1. #page
  2. #header
  3. #logo
  4. #sm (servicemenu)
  5. .regsiter
  6. .login
  7. #nav
  8. .menu
  9. .subMenu
  10. .search
  11. .sreachbtn(搜索按钮).sreachinput(搜索输入框)
  12. #container
  13. .bread
  14. [#areaSidebar]
  15. #sidebar
  16. .title
  17. .service
  18. .news
  19. .newslist
  20. .piclist
  21. .hot
  22. .msg(提示信息)
  23. .download
  24. .tab
  25. .list
  26. .accordion
  27. [#areaBanner]
  28. #content
  29. .contentMain
  30. .input
  31. .select
  32. .note
  33. .summary
  34. .column
  35. #footer
  36. .areaFooter
  37. .footerBottom
  38. .partner
  39. .copyRight
  40. .friendLink
  41. --------------------------------
  42. #page (w:960px)
  43. #logo (w:250px H:60px)
  44. #areaHeader (W:468px H:60px)
  45. #areaSidebar (W:200px H:auto)
  46. #areaBanner (W:760px H:auto)
  47. .areaFooter (W:auto H:auto)
  48. --------------------------------
  49. hlcf
  50. hcrf
  51. hlcrf
  52. hcf
  53. 组件命名:
  54. .box
  55. .boxHeader
  56. .boxBody
  57. .boxFooter
  58. .tab
  59. .tabHeader
  60. .tabHeaderContent
  61. .tabContent
  62. .tabFooter
  63. .tabFooterContent
  64. .panel
  65. .panelHeader
  66. .panelHeaderContent
  67. .panelBody
  68. .panelFooter
  69. .panelFooterContent
  70. .dialog
  71. .dialogHeader
  72. .dialogContent
  73. .dialogFooter
  74. .table
  75. .caption
  76. .tableList
  77. .pageList
  78. .Previous
  79. .next


-------------------------------
页面碎片fragment命名:

  1. /
  2. index.html
  3. login.html
  4. /account
  5. apply.html
  6. /info
  7. newsList.html
  8. news.html
  9. staticPage.html
  10. /myaccount
  11. overview.html
  12. updUser.html
  13. changePwd.html
  14. energyAssessment.html
  15. resourceCenter.html
  16. /myaccount/report
  17. reportManage.html
  18. reportList.html (QA 提到的report列表)
  19. /myaccount/report/rdsap
  20. reportList.html (EA 提到的report列表)
  21. addReport.html
  22. step_ADDRESS.html
  23. step_CHS.html ()
  24. step_CLA.html ()
  25. step_DIM.html ()
  26. step_FLAM.html ()
  27. step_FLO.html ()
  28. step_GEN.html ()
  29. step_IM.html ()
  30. step_MAIHS.html ()
  31. step_NOTSC.html ()
  32. step_ROO.html ()
  33. step_ROOR.html ()
  34. step_SECHS.html ()
  35. step_WAL.html ()
  36. step_WATHS.html ()
  37. step_WIN.html ()
  38. /myaccount/report/sap
  39. /myaccount/report/airs

以上就是html中关于Button.onclick的事件总结分享的详细内容,更多请关注Gxl网其它相关文章!

人气教程排行