Let's say you have two images that use the same image map.
<img src="/test/image1.jpg" id="image1" useMap="map-name">
<img src="/test/image2.jpg" id="image2" useMap="map-name">
<map name="map-name">
<area shape="rect" coords="0,0,82,126" alt="Sun" onmouseover="testFunction();"/>
<area shape="circle" coords="90,58,3" alt="Mercury" onmouseover="testFunction();"/>
<area shape="circle" coords="124,58,8" alt="Venus" onmouseover="testFunction();"/>
</map>
Is there any way to get the ID of the image (image1|image2 in this case) inside of the testFunction()?