I have a Form with a hidden field name "action" like:
<form name="myForm" action="/MyWeb/myServlet" method="POST">
<input type="hidden" name="action" value="load"
</form>
In my javascript, I would like to update both the form action url and action field dynamically.
but I found that the hidden field name "action" conflict with the form action url.
I am not able to do something like: myForm.action = "/MyWeb/anOtherServlet" in javascript
Anyone can help? I can not change the hidden field name "action" to other name. (I know this will resolve the problem) because, this field name is keyword in my own framework. (it will be a big change). Anyone know other way to refer to the form.action object?
Thanks a lot!
<form name="myForm" action="/MyWeb/myServlet" method="POST">
<input type="hidden" name="action" value="load"
</form>
In my javascript, I would like to update both the form action url and action field dynamically.
but I found that the hidden field name "action" conflict with the form action url.
I am not able to do something like: myForm.action = "/MyWeb/anOtherServlet" in javascript
Anyone can help? I can not change the hidden field name "action" to other name. (I know this will resolve the problem) because, this field name is keyword in my own framework. (it will be a big change). Anyone know other way to refer to the form.action object?
Thanks a lot!