how to set form action through javascript?
- by m.u.sheikh
I have an html form whose action should be set dynamically throught javascript. How do i do it? Here is what i am trying to do:
<script type="text/javscript">
function get_action() { // inside script tags
return form_action;
}
</script>
<form action=get_action()>
...
</form>