长沙到成都机票价格:提交表单同时想要把网页上表单内容清空应该怎么设置?

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 04:22:24
<form method=post action="web_admin/chklogin.asp" target="_blank">

<tr>
<td width="54" align="center" valign="bottom">
<img border="0" src="images/user.gif" width="50" height="20"></td>
<td height="25" align="left"> <input type="text" name="user" size="12" maxlength="100"></td>
</tr>
<tr>
<td width="54" align="center" valign="bottom">
<img border="0" src="images/pass.gif" width="50" height="20"></td>
<td align="left" height="25"> <input type="password" name="password" size="12" maxlength="100"></td>
</tr>
<tr>
<td width="54"> </td>
<td height="25"> <input type="submit" border="0" name="imageField" src="images/login_btn.gif" width="45" height="18" value="登陆"></td>
</tr>

</form>

我想把上面这个表单做成,在提交时原来页面上表单信息清空,达人来指点下应该怎么设置?

<input type="submit" onClick="Javascript:this.form.submit();this.form.reset();"...>