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

Q431 How can I post form results to multiple windows depending on the submit button the user clicks on?

irt.org | Knowledge Base | JavaScript | Form 7.2 | Q431 [ previous next ]

Q431 How can I post form results to multiple windows depending on the submit button the user clicks on?

The following changes the forms target when a button is clicked, it should work okay in Netscape Navigator and Internet Explorer 4:

<FORM TARGET="_top">
<INPUT TYPE="BUTTON" onClick="alert(this.form.target)" VALUE="Show Target">
<INPUT TYPE="BUTTON" onClick="this.form.target = 'awindow'" VALUE="Change Target">
</FORM>

If you need it to work in Internet Explorer 3 you'll need to use JavaScript to collect the forms name-value pairs and then open up a popup window and then pass that across. Take a look at the article Passing data from one form to another.


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.