<input type=file name=ttt>
<input type=button onclick="ttt.select();document.execCommand('Delete');"
value=清除file框的内容>http://community.csdn.net/Expert/topic/3146/3146620.xml?temp=.5954706
<input type=button onclick="ttt.select();document.execCommand('Delete');"
value=清除file框的内容>http://community.csdn.net/Expert/topic/3146/3146620.xml?temp=.5954706
to chinchy(糟老头能不能用js代码取得file域的值呢?我只知道在post到的页面可以,不知道在本页可以不?
<input type="button" value="clear" onclick="oFile.outerHTML=oFile.outerHTML;">这也可以设置上述要求