I want to know how to write strings in a textfile on my machine when I click on a button in my Html page using Javascript... I want an Internet Explorer, Chrome and Firefox compatibility...
Thanks
I want to know how to write strings in a textfile on my machine when I click on a button in my Html page using Javascript... I want an Internet Explorer, Chrome and Firefox compatibility...
Thanks
It's not possible. It would be a major security risk if browsers could write anything on the user's filesystem.
Best you could do is create a text file on your server, and serve it for download.
There ara some questions like yours here in stackoverflow, try some these links
Is it possible to write data to file using only JavaScript?
How to read and write into file using JavaScript
or you can try this gist example
Edit:
The Gist example only works for node.js sorry