J
j_liu21
I'm trying to trigger a javascript call when someone clicks on an
image.
<a href="javascript:void(0)" onClick="alert('hi');"><IMG src="foo.gif"
usemap="#someImageMap" border="0"></a>
This works in I.E., but will only work in Mozilla (using 1.0.5) if
there is text and the user must click on the text and not the image to
trigger the alert:
<a href="javascript:void(0)" onClick="alert('hi');"><IMG src="foo.gif"
usemap="#someImageMap" border="0">works if you click on this text</a>
image.
<a href="javascript:void(0)" onClick="alert('hi');"><IMG src="foo.gif"
usemap="#someImageMap" border="0"></a>
This works in I.E., but will only work in Mozilla (using 1.0.5) if
there is text and the user must click on the text and not the image to
trigger the alert:
<a href="javascript:void(0)" onClick="alert('hi');"><IMG src="foo.gif"
usemap="#someImageMap" border="0">works if you click on this text</a>