If two onclick
are on top of each other, i would like to know how to stop the second one from launching.
Example :
<div id="div1" onclick="alert('a');">
a
<div id="div2" onclick="alert('b');">
b
</div>
a
</div>
if click on div2, i would like to have only alert(b)
, but NOT alert(a)
afterwards.
FIDDLE : https://jsfiddle.net/ae9av150/2/