Java web p41

<!--程序 ch02_9.html -->

<html>

  <head>

    <title>单击按钮事件示例</title>

    <script language="jabascript">

      function test(){

        window.alter("事件引发一操作,并成功执行了这个操作!");

      }

    </script>

    </head>

    <body>

      <form action=" ">

        <input type="Button" value="警告对话框" onclick="test()"><br/>

      </from>

    </body>

  </html>

原文地址:https://www.cnblogs.com/meng2/p/7594380.html