Create and Write to Files with JavaScript/JQuery

后端 未结 3 705
自闭症患者
自闭症患者 2021-01-26 13:30

A few days ago I started to build a \"Talk To Us Page\" In c#.

So, I did a few buttons and text arena options..

And it was easy as C# should be. You just use a s

相关标签:
3条回答
  • 2021-01-26 13:52

    and when you clicked of a button it will write it all down to a file in driver c, or anything like that.

    Forget about it. For security reasons javascript that runs in a browser has no access to client and server files. Just think of the consequences if this was possible. You visit some site on the internet and all of a sudden files start to popup up and out of existence from your hard drive. Definitely something that should be forbidden.

    0 讨论(0)
  • 2021-01-26 13:57

    javascript cant access the files contents, atleat on the client machine.

    here is a helpful link http://en.wikipedia.org/wiki/JavaScript#Security

    0 讨论(0)
  • 2021-01-26 14:13

    Outside of Internet Explorer, you cannot use JavaScript to write to the local file system. This is a security feature of the sandbox in which in-browser JS runs.

    0 讨论(0)
提交回复
热议问题