赋值:
<script language=javascript>
function window.onload()
{
meizz.focus();
var WshShell=new ActiveXObject("WScript.Shell"); //会有安全提示
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东
}
</script>
<input name=meizz type=file>清除file框里的内容
<input type=file name=ttt>
<input type=button onclick="ttt.select();document.execCommand('Delete');" value=清除file框的内容>
<script language=javascript>
function window.onload()
{
meizz.focus();
var WshShell=new ActiveXObject("WScript.Shell"); //会有安全提示
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东
}
</script>
<input name=meizz type=file>清除file框里的内容
<input type=file name=ttt>
<input type=button onclick="ttt.select();document.execCommand('Delete');" value=清除file框的内容>
解决方案 »
- 急求帮忙:这个自动隐藏google侧边栏的脚本,怎么添加自动隐藏搜狗和搜搜的侧边栏?
- jquery新手问题8(图)
- 谷歌chrome浏览器 怎么用activeX ?
- 我还没分,求高手帮忙:javascript问题,如何隐藏这个过程中的播放器?
- 如何触发onchange事件?
- window.history.back();是回滚上一页。假如我要回滚下一页呢?有人做过没?高手
- 有没有这样的延时函数?
- 怎样得到一个网页页面的句柄?
- 用js调用web文件的属性,然后在web页面上返回数据,如修改日期,文件大小等
- 如何设置整个Iframe为Disabled,即不能对其中的任何控件进行操作
- 急呀!!!!
- 6BF52A52-394A-11d3-B153-00C04F79FAA6这是微软控制mediaplayer的控件
{
var tmp = window.event.srcElement ;
if( objFile.value != "" && objFile.value != null )
{
var zlm = new ActiveXObject("Scripting.FileSystemObject");
var fsInfo = zlm.GetFile(objFile.value) ;
if (fsInfo.Size > 1024*1024*20 )
{
alert(" 文件大小超过系统设置( 20M ),请压缩后上传 ! ");
tmp.select() ;
document.execCommand("Delete");
document.getElementById("ImageButton1").focus();
}
}
}