[READ-ONLY] Mirror of https://github.com/shuuji3/javascript-info-playground.
0

Configure Feed

Select the types of activity you want to include in your feed.

javascript-info-playground / click_handler.html
355 B 16 lines
1<!DOCTYPE html> 2<html lang="en"> 3<head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 <script> 7 document.querySelector('#btn').addEventListener('click', clickHandler); 8 function clickHandler(event) { 9 console.log(event.key); 10 } 11 </script> 12</head> 13<body> 14<button id="btn">Click handler!</button> 15</body> 16</html>