I write this simple htlm file :
<svg onclick="alert('Click svg!')" style="height: 200px; width: 200px; background-color: green"></svg>
<div onclick="alert('Click div!')" style="height: 200px; width: 200px; background-color: red"></div>
<object onclick="alert('Click object!')" data="./bank.svg" type="image/svg+xml" style="height: 4308.75px; width: 7660px;"></object>
When I click on the svg, I trigger the onclick event and get the alert 'Click svg!'.
When I click on the div, I trigger the onclick event and get the alert 'Click div!'.
When I click on the object, I trigger nothing.
Am I doing something wrong?