Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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>
Posted

1 solution

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 14-May-15 10:34am    
I voted 4. Unfortunately, manipulating client systems with some browsers is possible (IE JavaScript allows using ActiveX), but let's teach our inquirers to avoid dirty tricks.
—SA
Member 11690639 14-May-15 12:26pm    
man this is my uni exercise i must mail the file in 2hr :D the question says: write a code that take a name from user & create new folder by that name in his C drive...!!
F-ES Sitecore 15-May-15 3:03am    
I doubt that is an exercise for javascript, you're probably using the wrong language.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900