Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

JavaScript

In the todo list project with javascript how do you save the list when you open it on the internet. How do you save it.

When he teaches the lesson on how to build it, He shows you how to build it, but when I uploaded it to my website, and try to use it as a todo list. I doesn't save any of the todo items. For example it type pickup Kids and hit enter and it goes down into the todo list, but when I refresh the page it disappears and doesn't save the string. Where can I find the code to save the string if I werte to open it on another page, and it would be there.

1 Answer

Erik McClintock
Erik McClintock
45,783 Points

Nathan,

You could look into localStorage here and here.

Erik