Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<style>
div {
  padding:50px;
  background-color:rgba(255, 0, 0, 0.2);
  text-align:center;
  cursor:pointer;
}
</style>
<script>
function func1(event) {
  alert(event.composedPath());
}
</script>
<h1>The composedPath() Method</h1>
<p>Click DIV 1:</p>
<div>DIV 2
  <div onclick="func1(event)">DIV 1</div>
</div>
<p>The composedPath() method returns all the elements the current event will propogate through.</p>
</body>
</html>