Javascript provides a method called click().
This works for example:
<a id="a" href="index.htm">Click here</a>
and
document.getElementById("a").click();
But what about SVG-Elements?
<svg>
<g id="a" .....></g>
</svg>
This won't work:
document.getElementById("a").click();
I can successfully select the g-Tag, but it has no click method:
document.getElementById(...).click is not a function
Is it somehow possible to click an element within an SVG-Tag with Javascript?