there is html structure:
<a onclick="setString()">
<img alt="no" />
</a>
I need to get attribute of a,that had been clicked,e.g. alt.
How to know with setString() js function ,
image with what alt attribute is clicked?
I assume,that somehow with this,but don’t know how.
I would change my HTML to remove the bits that aren’t needed…
Rather than wrapping the image in an anchor tag, style it with CSS if you want…