Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save and edit a file using JavaScript?

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 directory of the current web page? I don't have a slight idea how it's done or even if it could be done in JavaScript.

How can it be done?

like image 607
Faiz Ahmed Avatar asked Feb 28 '14 06:02

Faiz Ahmed


1 Answers

you cant save file with js in server nor the client system. you need a server side script like php or asp.net to save files to server. but cant save anything other than a cookie to the client system.

like image 124
Exlord Avatar answered Oct 09 '22 14:10

Exlord