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

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

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

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

Try:

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