<html> <head> <script type="text/javascript"> function disp_alert() { alert("这是条弹出消息") } </script> </head> <body> <form> <input type="button" onclick="disp_alert()" value="弹出消息"> </form> </body> </html>
编辑上面的文字,按下“查看结果”,效果会显示在右边 Create by 软晨网(RuanChen.com)