For some reason I can have an input type as a button with an onclick event but when I set the input type as image and put an onclick event into it, it doesn't seem to work.
I.e.
This works:
<input type="button" onclick="func('hello')"/>
This doesn't work:
<input type="image" onclick="func('hello')" src="image.jpg"/>