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

Q176 How can I submit a form using a normal image link?

irt.org | Knowledge Base | JavaScript | Form 7.3 | Q176 [ previous next ]

Q176 How can I submit a form using a normal image link?

<FORM NAME="myform">
<A HREF="javascript:document.myform.submit()"><IMG SRC="text1.gif" WIDTH="16" HEIGHT="16" BORDER="0"></A>
</FORM>

However, when using this method the forms onSubmit() event handler is not invoked. Although you can invoke by changing your code to call it directly before submitting the form.

Feedback on 'Q176 How can I submit a form using a normal image link?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


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