我做过的,但不是file控件,而是一个dll+htc,value是可以被弄个值出来的,但是没啥用<script language=javascript>
function window.onload()
{
document.form1.T1.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东
}
</script> http://blog.csdn.net/liuxiaoyi666/archive/2005/01/17/257209.aspx一年多前我写的东西
function window.onload()
{
document.form1.T1.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("c:\\test.txt"); //向文本框里发送东东
}
</script> http://blog.csdn.net/liuxiaoyi666/archive/2005/01/17/257209.aspx一年多前我写的东西
这个怎么实现?
<input type=file name=T1 id=T1 />
</form>
<script language=javascript>
function window.onload()
{
document.form1.T1.focus();
var WshShell=new ActiveXObject("WScript.Shell");
WshShell.sendKeys("g:\\mydir"); //向文本框里发送东东
}
</script>