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="查询" οnclick="submitAction('MEB041.dow')"/>
<input name="down" type="submit" class="btn" value="下载" οnclick="submitAction('MEB045.dow')" />
</td>
</tr>
</form >
----------------------
注意:type="submit"