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

Q372 How can I make one submit-button post two different form to two different urls?

You are here: irt.org | FAQ | JavaScript | Form | 7.2 | Q372 [ previous next ]

Use a frameset with three frames - two of which are hidden. When the visible form is submitted use the onSubmit event handler to submit the two invisible forms:

<FORM onSubmit="parent.frame2.formName.submit();parent.frame3.formName.submit();return false">
<INPUT TYPE="SUBMIT" VALUE="Send two forms">
</FORM>

Feedback on 'Q372 How can I make one submit-button post two different form to two different urls?'

©2018 Martin Webb