I have a doubt regarding adding attributes to Image Map Hot Spots.
e.g. ASP.NET code for Image Map is
<asp:ImageMap ID="ImageMap1" runat="server" ImageUrl="~/flower1.jpg" Width="400" Height="400">
<asp:RectangleHotSpot AlternateText="1" HotSpotMode="PostBack" PostBackValue="1" Top="0" Bottom="225" Left="0" Right="150" />
<asp:RectangleHotSpot AlternateText="2" HotSpotMode="PostBack" PostBackValue="2" Top="0" Bottom="225" Left="151" Right="300" />
</asp:ImageMap>
after rendering it will be converted like this
<img id="ImageMap1" onclick="return ShowImagePart(this.id)" src="flower1.jpg" usemap="#ImageMapImageMap1" style="height:400px;width:400px;border-width:0px;" /><map name="ImageMapImageMap1" id="ImageMapImageMap1">
<area shape="rect" coords="0,0,150,225" href="javascript:__doPostBack('ImageMap1','0')" title="1" alt="1" /><area shape="rect" coords="151,0,300,225" href="javascript:__doPostBack('ImageMap1','1')" title="2" alt="2" />
</map>
If we use HTML image directly instead of Image Map we can add onclick event(client side) to area tag. But how can we add the same event to HotSpot tag in ImageMap