我需要在js打开功能打开以在客户端PC上创建新文件夹 [英] i need function Open in js blow to create new folder on client pc

查看:78
本文介绍了我需要在js打开功能打开以在客户端PC上创建新文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,我需要写一个html代码,给出客户端的名称和在客户端Pc中按名称创建一个新文件夹,我写一个基础...文本框清除按钮,创建新文件夹按钮我需要功能打开





< FORM name =Keypadaction =>

< input name =ReadOuttype =Textsize = 24 value =Put你的名字在这里width = 100%>

< input name =btnGiveNametype =Buttonvalue =在descktop上创建文件夹onclick =Open()>

< input name =btnCleartype =Buttonvalue =清除texboxonclick =清除()>

< / FORM>



< SCRIPT LANGUAGE =JavaScript>

var FKeyPad = document.Keypad;

功能清除(){

FKeyPad.ReadOut.value =;

}



功能打开()$



}

< / script>

hey there i need to write a html code that give a name from client & creat a new folder by that name in client Pc, i write a base... text box clear button,create new folder button i need function Open


<FORM name="Keypad" action="">
<input name="ReadOut" type="Text" size=24 value="Put your name here" width=100%>
<input name="btnGiveName" type="Button" value="Creat folder on descktop" onclick="Open()">
<input name="btnClear" type="Button" value="clear the texbox" onclick="Clear()">
</FORM>

<SCRIPT LANGUAGE="JavaScript">
var FKeyPad = document.Keypad;
function Clear () {
FKeyPad.ReadOut.value = "";
}

function Open () {

}
</script>

推荐答案

如果网站可以与客户端文件系统交互,请考虑安全隐患。这不能用html和javascript来完成,你需要一些客户端组件,比如activex,java,flash等来做这些事情。但是,无论如何,我怀疑你最终想要做的事情可能是不可能的。任何依赖于操纵客户端文件系统的网站都必然会失败。
Think of the security implications if websites could interact with the client file system. This can't be done with html and javascript, you're going to need some client component like activex, java, flash etc to do these things. However I suspect what you're trying to do ultimately is probably not possible anyway. Any website that relies on manipulating the client's filesystem is bound to fail.


这篇关于我需要在js打开功能打开以在客户端PC上创建新文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆