mouse click event js code example
Example 1: does click event work only for buttons
<button>
<svg>
<use xlink:href="#gear"></use>
</svg>
</button>
Example 2: does click event work only for buttons
button > * {
pointer-events: none;
}
<button>
<svg>
<use xlink:href="#gear"></use>
</svg>
</button>
button > * {
pointer-events: none;
}