<
html
>
<
head
>
<
script
>
function change(obj){
alert("change...");
var nf = obj.cloneNode(true);
nf.value=''; // 设计新控件value为空
obj.parentNode.replaceChild(nf, obj);
}
</
script
>
</
head
>
<
body
>
<
input
type
=
"file"
name
=
"f1"
id
=
"file1"
onchange
=
"change(this)"
/>
</
body
>
</
html
>