« css滤镜 Xray 以X光效果显示对象内容iis 启动 发生意外错误0x8ffe2740 »

form . reset ()

语法:
form . reset ()
参数:

返回值:

说明:
重置一个表单( form )。即模拟重置按钮( INPUT type=reset )的一次单击( click )。同时激发 onreset 事件。

<form action="mailto:baby@rongshu.com?subject=DHTMLET(TM)" encType="text/plain" method="POST" name="oForm" onsubmit="alert('我被提交了');" onreset="alert('我被重置了');">
姓名: <input type=text size=24 name="username" id=oInput>
<br>
<br>
<input type=button value=" 提 交 " onclick="document.all('oForm').fireEvent('onsubmit');document.all('oForm').submit();">&nbsp;
<input type=button value=" 重 置 " onclick="document.all('oForm').reset();">&nbsp;
</form>

原创文章如转载,请注明:转载自悠悠博客 [ http://www.ajaxstu.com/ ]

相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。