I have a number of <image> elements in my SVG. I want to add an onclick handler to them that accesses the image URL associated with the specific node, but I can't find the field name in the DOM documentation. If it was HTML then I would be accessing this.src, but the SVG DOM is clearly different -- I can't find any relevant documentation on this.
Added clarification: if I have something like
<image xlink:href="http://example.jpg" onclick="code"> then I need the 'code' to access the image URL for the current node.