Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body>
  <button id="awesome-button">Click me</button>
</body>
</html>
 
document.addEventListener('click', e => {
  alert(`You actually clicked on element with #${e.target.getAttribute('id')}, not directly on document`);
  alert(e.currentTarget === document)
}, false);
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x