日期:2009-04-01  浏览次数:20856 次

<body>
<FORM name="form1">
方法1:<input type="file" name="f"><input type=button value=reset onclick="f.outerHTML='<input type=\'file\' name=\'f\'>'">
</FORM>


<FORM name=form2>
方法2:<input type="file" name=f2>
<input type=button value=reset onclick="f2.select();document.execCommand('delete')">
</FORM>
</body>