JavaScript - how to create files with javascript for chrome browser?

Asked By vsd on 21-Nov-13 01:17 AM

I have used the coding CreateTextFile(fname, true). but it doesn't work. so pls help me.........


Robbe Morris replied to vsd on 21-Nov-13 09:01 AM
The browser will prohibit you from writing files to the hard drive of your visitor using Chrome, FireFox, or IE (or any other browser for that matter).  If the text is small enough, you could stick it in a cookie for persistence.
Erik Little replied to vsd on 28-Feb-14 02:08 PM
Are you trying to save the file to the server or on the client?