W3School TIY
编辑您的代码:
<!DOCTYPE html> <html> <body> <button type="button" onclick="alert('Hello World!')">Click Me!</button> </body> </html>
查看结果: