[JS5] 利用onload执行脚本

 

 1 <html>
 2 <head>
 3 <title>利用onload执行脚本</title>
 4 <SCRIPT TYPE="text/JavaScript">
 5     <!--
 6         function opennews(){
 7             alert("利用onLoad事件执行脚本")
 8         }
 9     //-->
10 </SCRIPT>
11 </head>
12 <body onload="opennews()">
13     <b>利用onload执行脚本
14     </b>
15 </body>
16 </html>

 

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