同一个表单 根据要求递交到不同页面的实现方法小结
人气:0
JS 文件
<script language="javascript">
function submitAction(action_nm)
{
var targetForm = document.qryposfrm;
targetForm.action = action_nm;
targetForm.submit();
}
</script>
HTML
<form method="post" id="qryposfrm" name="qryposfrm">
<tr>
<td colspan="4" height="29" align="center">
<input name="qry" type="submit" class="btn" value="查询" onclick="submitAction('MEB041.dow')"/>
<input name="down" type="submit" class="btn" value="下载" onclick="submitAction('MEB045.dow')" />
</td>
</tr>
</form >
注意:type="submit"
复制代码 代码如下:
<script language="javascript">
function submitAction(action_nm)
{
var targetForm = document.qryposfrm;
targetForm.action = action_nm;
targetForm.submit();
}
</script>
HTML
复制代码 代码如下:
<form method="post" id="qryposfrm" name="qryposfrm">
<tr>
<td colspan="4" height="29" align="center">
<input name="qry" type="submit" class="btn" value="查询" onclick="submitAction('MEB041.dow')"/>
<input name="down" type="submit" class="btn" value="下载" onclick="submitAction('MEB045.dow')" />
</td>
</tr>
</form >
注意:type="submit"
加载全部内容