The onclick
attribute specifies some script to run when the element is clicked.
You can use this attribute with the following SVG elements:
<a>
<altGlyph>
<animate>
<animateMotion>
<animateTransform>
<circle>
<defs>
<desc>
<ellipse>
<foreignObject>
<g>
<image>
<line>
<linearGradient>
<marker>
<metadata>
<mpath>
<path>
<pattern>
<polygon>
<polyline>
<radialGradient>
<rect>
<script>
<set>
<stop>
<style>
<svg>
<switch>
<symbol>
<text>
<textPath>
<title>
<tref>
<tspan>
<use>
<view>