On clicking black (outer div) outer is printed (no issue with that) but on clicking brown (inner div) both inner and outer is printed and thats the issue. I want only inner to be printed on clicking in brown area and outer on black area.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body style="height:100px; width:100px;">
<div style="width: 100%; height: 100%; background-color: black;" onclick="console.log('outer')">
<div style="width: 50%; height: 50%; background-color: brown;" onclick="console.log('inner');"></div>
</div>
</body>
</html>