My first guess was to add an
onClick event handler to the image tag, as follows:
<img src=image.gif onClick="myFunction ();">
Image objects do not have onClick, onMouseOut, and onMouseOver event handlers. However, if you define an Area object for the image or place the <IMG> tag within a Link object, you can use the Area or Link object's event handlers.Turning an image into a hyperlink is a simple matter; we do so as follows:
Now, however, the original question becomes a little more general:
Go ahead, give it a try:
If you don't like the hyperlink border around the image, don't forget to include "
border=0" in the image tag.
November 23, 1996