Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Is there any course teaching how to use Javascript to write data in client side txt files?

I am trying to create a html page for my own to-do management. Thus, I will have to store these data in my computer's file system.

2 Answers

Generally speaking, this is not possible with browser based JavaScript. There are scripts out there that will open a dialogue to save a file. However, the ones I've seen will only work in something like IE, as Chrome and Firefox consider this to be a security concern.

You probably want to generate a file on the server, and then provide a link to download the file.

I see... so it's restricted by security concern.
Thank you so much for your reply :)