Exercise 10.7

This commit is contained in:
Karan
2021-11-24 22:58:53 +05:30
committed by GitHub
parent 54a63ec9f1
commit b994a8a9f0
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html>
<head>
<title>JS Tester</title>
</head>
<body>
<div>
<button onclick="message(this)">Button 1</button>
<button onclick="message(this)">Button 2</button>
</div>
<script>
function message(el) {
console.dir(el.textContent);
}
</script>
</body>
</html>