how to set form action through javascript?
        Posted  
        
            by m.u.sheikh
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by m.u.sheikh
        
        
        
        Published on 2010-04-23T18:28:45Z
        Indexed on 
            2010/04/23
            18:33 UTC
        
        
        Read the original article
        Hit count: 410
        
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>
© Stack Overflow or respective owner