I have span inside a span with both onclick function. But when I click inner span it runs like the outer span is clicked
<article onclick="location='/Code1.php?'" >
<!--Run Code1.php-->
<span onclick="location='/Code2.php'" >
<!--Run Code2.php-->
</span>
<!--Run Code1.php-->
</article>
It runs Code1.php whether I click on Code1.php or Code2.php. Article and span are overlapped, so click on span is also considered as click on article.
Code2.php should be executed when it is clicked on span, and Code1.php should be executed when clicked on article except the part of that span inside article.