Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

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

You are here: irt.org | FAQ | JavaScript | Form | 10.3 | Q391 [ previous next ]

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?'

©2018 Martin Webb