Julio, are you talking about something like:

<form action="whatever">
<input type="text" name="action">

In that case, you can assign an "id" attribute to the input field the same
way you assigned one to the form field, and address it in the same manner.
Or you can use the name field:

Document.getElementsByName("action")[0].value="whatever";

Note that getElementsByName returns an array of items, since the "name"
attribute doesn't have to have a unique value (but id does). So you need to
subscript that array to get the right one. If there's only one element with
name="action" then it's element zero of the array.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to