<form id="form1">
<input type="text" id="name"/>
<input type="button" value="这个用JavaScript清除"οnclick="document.getElementById('form1').reset()"/>
<input type="reset" value="这个是Form清除" />
</form>
<input type="text" id="name"/>
<input type="button" value="这个用JavaScript清除"οnclick="document.getElementById('form1').reset()"/>
<input type="reset" value="这个是Form清除" />
</form>