Exercise 10.7

This commit is contained in:
Karan 2021-11-24 22:58:53 +05:30 committed by GitHub
parent 54a63ec9f1
commit b994a8a9f0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

17
Chapter 10/Exercise 10.7 Normal file
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>