dimpase,
<object data="00005200.svg" type="image/svg+xml"></object>
<object data="00005201.svg" type="image/svg+xml"></object>
<object data="00005207.svg" type="image/svg+xml"></object>
<script>
for(const svgObject of document.querySelectorAll("object[type='image/svg+xml']")) {
svgObject.contentWindow.addEventListener("click", event => {
console.log(event.target.id);
});
}
</script>