Skip to content

Commit ec1e0c1

Browse files
committed
Code 2 Class 13 / 1
1 parent c5a9200 commit ec1e0c1

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<button id="Button">Click Me! 🦉</button>
10+
<script src="js/script.js"></script>
11+
</body>
12+
</html>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// let btn = document.querySelector("button")
2+
let btn = document.getElementById("Button")
3+
4+
5+
console.log(btn)
6+
btn.addEventListener("click",()=>{
7+
alert("Button Clicked")
8+
})

0 commit comments

Comments
 (0)