How to save and edit a file using JavaScript?

后端 未结 5 1663
悲&欢浪女
悲&欢浪女 2020-12-06 02:44

I want a user of my website to enter some text in a text area and when he submits the form, the text that he entered be stored in a .txt file that is present in same directo

5条回答
  •  遥遥无期
    2020-12-06 02:52

    You can't. You need some server-side script to access the filesystem of the server such as PHP or Java.

提交回复
热议问题