编辑下面的代码:【加编码】
<html> <body> <h1>我的第一个 JavaScript</h1> <p> JavaScript 能够对事件作出反应。比如对按钮的点击: </p> <button type="button" onclick="alert('欢迎!')">点我!</button> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂