Jump to content

Save a string, in javascript, into Windows text file


abdu

Recommended Posts

For security reasons, Javascript is not allowed to write to files.

If Javascript could write to files then websites would use that to install viruses onto your computer.

Link to comment
Share on other sites

For short sentences or data/text under 5M in size you might consider local storage.

Note:  It does not create a file that can be shared.  Only saves to local client computer, not server.

Edited by JMRKER
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...