1 <html>
 2 <head>
 3 <title>通过用户事件事件执行脚本</title>
 4 <SCRIPT TYPE="text/JavaScript">
 5     <!--
 6         function shownews(){
 7             alert("单击按钮事件执行脚本")
 8         }
 9     //-->
10 </SCRIPT>
11 </head>
12 <body>
13     <b>利用onload执行脚本</b>
14     <form method="send">
15         <input type="Button" name="BUTTON1" value="单击"
16             onclick="shownews()">
17     </form>
18 </body>
19 </html>

 

相关文章:

  • 2021-10-03
  • 2022-03-06
  • 2022-12-23
  • 2021-11-29
  • 2022-12-23
  • 2021-09-15
  • 2022-12-23
猜你喜欢
  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-05-31
  • 2022-03-08
相关资源
相似解决方案