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

Q1333 Is there any way to emulate a http "POST" request, but with multiple form buttons peforming different requests?

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

Q1333 Is there any way to emulate a http "POST" request, but with multiple form buttons peforming different requests?

Try (remembering that Internet Explorer 3 cannot change the forms action attribute):

<form method="post">
<input type="submit" onClick="this.form.action='http://search.yahoo.com'">
<input type="submit" onClick="this.form.action='http://search.webcrawler.com'">
....
</form>

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.