会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
朝露绿客联盟
...从明天起,做一个幸福的人。 ...喂马,劈材,周游世界。 ...从明天起,关心粮食和蔬菜。 ...我有一所房子,面朝大海春暖花开。
CnBlogs
Home
New Post
Admin
<input type=file>的清空(javascript)
file赋值
<
input
name
="f1"
value
="C:\1.htm"
>
<
input
type
="button"
value
="浏览
"
onClick
="f2.click();f1.value=f2.value;"
>
<
input
type
="file"
id
="f2"
style
="display:none"
>
------------------------------------------
清空file文件上传域问题.HEMP ME
把file文件上传域清空
<
script
>
function
cls()
{
myfile.select();
document.execCommand(
"
delete
"
);
}
</
script
>
<
input
type
=file
name
=myfile
>
<
input
type
=button
onclick
="cls()"
value
=清除
>
=========================
<
input
type
="FILE"
name
="FILE1"
size
="50"
value
="這裏為什麽顯示不出來"
>
<
script
>
document.all.FILE1.focus();
var
WshShell
=
new
ActiveXObject(
"
WScript.Shell
"
);
WshShell.sendKeys(
"
c:\\temp\\date.rar
"
);
</
script
>
---------------------------------------------
<
input
type
="file"
name
="file"
>
<
input
type
="button"
value
="清除file里的内容"
onclick
="file.select();document
.selection.clear();"
>
------------------------------------------------
<
form
>
<
input
type
="file"
>
<
input
type
="button"
value
="清除file里的内容"
onclick
="form.reset()"
>
-----------------------------------------------
<
input
type
="file"
name
="file"
>
<
input
type
="button"
value
="清除file里的内容"
onclick
="file.outerHTML=file
.outerHTML"
>
posted @
2007-01-19 12:39
blueKnight
Views(
18920
) Comments(
10
)
Edit
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告