フォーム内のアクション
<br /> <form action='a.php?act=XXX' method='post'><br /> <input type='text' name='action' value=''/><br /> <input type='submit' name='sub' value='提交'/><br /> </form><br />
<br /> <script type="text/javascript"><br /> function fun_action_src(){<br /> var vals = document.getElementById('aid').value;<br /> document.getElementById('form1').action = "a.php?act="+vals;<br /> document.getElementById('form1').submit();<br /> //alert(vals);<br /> <br /> }<br /> </script><br /> <form id="form1" action='' method='post'><br /> <input id="aid" type='text' name='action' value=''/><br /> <input onclick="fun_action_src()" type='button' name='sub' value='提交'/><br /> </form><br /> <br />