[JS6] 通过用户事件事件执行脚本

 

 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>

 

posted @ 2014-05-13 23:45  beautifulzzzz  阅读(586)  评论(0编辑  收藏  举报