Posted in Javascript onNovember 04, 2008
一般比较简单的就是
document.formName.action="/dddd.do?ddd="+str
document.formName.submit();
写成函数式的调用就是
<script language="JavaScript" > function checkaction(v){ if(v==0){ document.dbform.action="index.php?admin_db-repair"; }else{ document.dbform.action="index.php?admin_db-optimize"; } dbform.submit(); } </script> <form action="" method="post" name="dbform"> <input type="submit" class="btn" value="{lang dbStartOptimize}" name="opsubmit" onclick="checkaction(1);" /> <input type="submit" class="btn" value="{lang dbStartFix}" name="resubmit" onclick="checkaction(0);" /> </form>
js form action动态修改方法
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@