DOM events

 <!DOCTYPE html>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DOM events</title>
</head>
<body>
    <button onclick="console.log('Photo liked');">Like</button>
    <button onclick="console.log('Photo liked');">Like</button>
    <button onclick="console.log('Photo liked');">Like</button>

</body>
</html>

Comments

Popular posts from this blog

Callback Hell

TODO list with DOM

Refactoring callback hell code