HTML——理解Javascript事件

<!DOCTYPE html>

<html lang = "en">
<head>
    <title>Event Test</title>
</head>

<body>
    <h1>Event Test</h1>
    <button type = "button"
        onclick = "alert('You clicked the button.')">
        Click Me!</button>
</body>
</html>

 

posted @ 2019-01-28 16:28  JAYPARK01  阅读(141)  评论(0编辑  收藏  举报