Hi my HTML code is like
<div onclick="alert('layer 4');">
<h1>layer 4</h1>
<div onclick="alert('layer 3');" >
<h1>layer 3</h1>
<div onclick="alert('layer 2');">
<h1>layer 2</h1>
<div onclick="alert('layer 1');">
<h1>layer 1</h1>
</div>
</div>
</div>
</div>
So when i click the layer 1 then all the click events for all 4 layers will get triggered because of event bubling. We can use stop propagation to stop the bubbling. All i want to know is that if i click the layer 1 is it possible to skip the click function of the 1st and 2nd layer then execute 3rd layer's click function and skip the 4th layer's function? How can i do that?