<input type=file name=ttt>  
<input type=button onclick="ttt.select();document.execCommand('Delete');"  value=清除file框的内容>

解决方案 »

  1.   

    <body onload="ttt.select();document.execCommand('Delete');">
    <input type=file name=ttt>代码都给你了, 自己组合呀
      

  2.   

    不对呀,内容还在!!!!<BODY onload="file1.select();document.execCommand('Delete');">
      

  3.   

    不是,需要自动清除,不需要人工干预自动清除是什么含义?总得有个触发事件吧,然后再把meizz(梅花雪)兄的代码贴到事件的处理过程中去。
      

  4.   

    meizz(梅花雪) 帮忙帮到底,谢谢啦
      

  5.   

    <BODY onload="document.all.file1.select();document.execCommand('Delete');"><input type=file id=file1>
      

  6.   

    自动清除是什么含义?总得有个触发事件吧按IE的“后退”按钮,或go(-1),则触发什么事件?
      

  7.   

    行啦,谢谢meizz(梅花雪),结题