时间:2021-07-01 10:21:17 帮助过:19人阅读
<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"