Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> <script> function myFunction(){ alert("你好,世界!"); } </script> </head> <body> <button onclick="myFunction()">点我</button> <p>当按钮点击后,一个函数将被执行,该函数结果警告一条信息。</p> </body> </html>