abdu Posted August 24, 2018 Share Posted August 24, 2018 How do we save a string, in javascript; var s='a sentence needs to be saved' into Windows text file on local HDD/machine THANKS IN ADVANCE. Link to comment Share on other sites More sharing options...
Ingolme Posted August 24, 2018 Share Posted August 24, 2018 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 More sharing options...
JMRKER Posted August 25, 2018 Share Posted August 25, 2018 (edited) 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 August 25, 2018 by JMRKER Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now