Hi guys, I've encountered a problem and I would like some advice and informatiuon on it if possible
I have a couple of Anchor tags on my site surrounding images, tehy have the onClick event in them which runs a function, eg...
Code:
<a href="#" onClick="myFunc();"><img src="image.jpg"></a>
Now this worls fine in all browsers except IE5 and Opera, doesd anyone have anmy cluse as to why, I've done some searching but have found no news on it.
I've found that if I Change the image to be a button...
Code:
<input type="image" onClick="myFunc();">
This works fine and I've got no problem using this method, hell it would probably work if I used...
Code:
<a href="javascript:myFunc();"><img src="image.jpg"></a>
But I'm just interested in why my original method didn't work, any clues out there?
Blaise