<div id="level-one">
  <div id="level-two">
    <div id="level-three">Inspect me!</div>
  </div>
</div>
document.getElementById("level-one").addEventListener("click", () => {
  console.log("level one click");
});
document.getElementById("level-two").addEventListener("click", () => {
  console.log("level two click");
});
document.getElementById("level-three").addEventListener("click", () => {
  console.log("level three click");
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.