Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q77 How can I have an onMouseOver event handler on an image in a form?

irt.org | Knowledge Base | JavaScript | Image | Q77 [ previous next ]

Q77 How can I have an onMouseOver event handler on an image in a form?

You are probably coding it as:

<form>
<input type="image" src="mine.gif">
</form>

If so try something like this:

<form name="myform">
<a href="javascript:document.myform.submit()" onMouseOver="alert('here I am')"><img src="mine.gif" border="0"></a>
</form>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.