Files
JavaScript-from-Beginner-to…/Chapter 10/Code Samples/ch10-eventtarget.html
T
2021-11-25 14:40:42 +01:00

11 lines
210 B
HTML
Executable File

<html>
<body>
<button type="button" onclick="triggerSomething()">Click</button>
<script>
function triggerSomething() {
console.dir(event.target);
}
</script>
</body>
</html>