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

Q391 How do I use an image button to submit a form in a different frame?

irt.org | Knowledge Base | JavaScript | Form 10.3 | Q391 [ previous next ]

Q391 How do I use an image button to submit a form in a different frame?

Try:

<a href="javascript:parent.otherframename.document.formname.submit()"><img src="image.gif" height="100" width="100"></a>

If that doesn't work, or you require the forms onSubmit event handler to fire, try:

<a href="javascript:parent.otherframename.formname.submitbuttonname.click()"><img src="image.gif" height="100" width="100"></a>

Feedback on 'Q391 How do I use an image button to submit a form in a different frame?'


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.