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

Q1511 How can I change the name of an input form field prior to submitting the form to a search engine?

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

Try:

<form>
<input type="text" name="first">
<input type="button" onClick="this.form.elements[0].name='second'; this.form.submit()">
</form>

©2018 Martin Webb