HTML标签:脚本

控制HTML页面文档交互行为,需要嵌入JavaScript脚本。

<!DOCType html>
<html>
    <head>    
        <meta charset="utf-8">
        <title>脚本</title>      
    </head>

    <body> 
       <!--脚本-->
       <script>
           function sendMsg()
           {
               document.write("发送消息");
           }
       </script>

       <button type="button" onclick="sendMsg()">发送</button>

    </body>
</html>>

 

 

猜你喜欢

转载自blog.csdn.net/hppyW/article/details/122640836
今日推荐